-
Notifications
You must be signed in to change notification settings - Fork 1.2k
npm fail #1341
Comments
The problem was fixed here: libp2p/js-libp2p-mplex@20cf80a#diff-b9cfc7f2cdf78a7f4b91a753d10865a2 but has yet to been released. Once we have a new release of js-ipfs (subscribe to this issue for updates), this issue will go away. Basically, npm somehow tries to clone the repository with the ssh endpoint instead of https, meaning that GitHub will try to auth you with the repository Ps, you should never run npm with sudo as it pulls down a lot of packages and if a package is compromised, they now have root access to your machine. Please read the following documentation from npm on how to solve this issue: https://docs.npmjs.com/getting-started/fixing-npm-permissions |
According to the NPM documentation you provided, I installed the NVM and used the command "npm install ipfs --global", There are other errors in execution results. node-pre-gyp ERR! Tried to download(403): https://node-binaries.s3.amazonaws.com/gcstats/v1.1.1/Release/node-v64-darwin-x64.tar.gz In file included from ../node_modules/nan/nan.h:192: npm -v node -v |
@xuruijing I'll look into this, I might have come across the same problem |
Yeah, I'm pretty sure js-ipfs doesn't currently work with 10.0.0. Some packages even define that they don't work with 10.0.0 and if you're using yarn, it won't even try to install the dependencies because of the strictness. |
LevelDB is failing to compile for me both with the current version 0.28 and master on Node.js 10.x. Possibly others... |
I changed node.js to version 8.11.1, and the compilation will not show the last error, but the previous error still exists, and I wonder if it will affect the running of ipfs? |
Looks like I think @richardschneider is right this should be pushed into It would be great to sort that out as well whilst upgrading leveldown to a version that works with Node.js 10.x. |
Also, do I have to install it manually? npm WARN dirty-chai@2.0.1 requires a peer of chai@>=2.2.1 <5 but none is installed. You must install peer dependencies yourself. |
Which error are you referring to? |
node-pre-gyp ERR! Tried to download(403): https://node-binaries.s3.amazonaws.com/gcstats/v1.1.1/Release/node-v57-darwin-x64.tar.gz This error still exists after changing the node.js version. |
@xuruijing I think that's ok, it just means that npm has had to compile something because a pre-built binary didn't exist. |
I've created an issue here to track the Node.js 10.x issue: #1347 Thanks @xuruijing |
I run this command in Mac
result a warnning "deprecated libp2p-multiplex@0.5.1: use libp2p-mplex instead"
and a error "Command failed: /usr/bin/git clone -q git://github.com/dignifiedquire/multiplex.git /Users/xuruijing/.npm/_cacache/tmp/git-clone-c8dde9da
npm ERR! /Users/xuruijing/.npm/_cacache/tmp/git-clone-c8dde9da/.git: Permission denied"
why? Who has run into such a problem?
npm -v
5.6.0
node -v
v8.11.1
The text was updated successfully, but these errors were encountered: