-
Notifications
You must be signed in to change notification settings - Fork 1.2k
node-gyp instructions for linux install needs added to readme #619
Comments
AFAIK, node-gyp should come bundled with npm and not require explicit installation, as long as you have npm https://github.com/nodejs/node-gyp/wiki/Updating-npm's-bundled-node-gyp
|
exactly what @victorbjelkholm referenced. How did you install node, @SidHarder ? |
@SidHarder do you find this to still be a problem? |
Closing, let us know if the problem persists (should not be the case) |
Hello, I've got trouble installing js-ipfs, some dependencies can't compile I've got I'm on ubuntu 14, I installed/switched to node v6 using errors: make: *** [Release/obj.target/fs-ext/fs-ext.o] Error 1
make: Leaving directory '/home/zephilde/Downloads/dev/Quantum/node_modules/fs-ext/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.8.11
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/zephilde/Downloads/dev/Quantum/node_modules/fs-ext
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok make: *** [Release/obj.target/sha3/src/addon.o] Error 1
make: Leaving directory `'home/zephilde/Downloads/dev/Quantum/node_modules/sha3/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.8.11
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/zephilde/Downloads/dev/Quantum/node_modules/sha3
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN quantum@0.1.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.6.0 (node_modules/fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.6.0 install: `node-gyp configure build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sha3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sha3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sha3
npm ERR! There is likely additional logging output above. |
@devingfx it is weird that it fails specifically at sha3 for you, can you check you have all your OS packages up to date as well? The normal error is with the wrtc package, which requires all of this deps -- listed here: https://www.npmjs.com/package/wrtc#debianubuntu --. @victorbjelkholm this is a recurring question, since you are the most save installing in Ubuntu, could you compile a list of checks for users to follow? |
@devingfx I had this problem a few months ago and spent several hours trying to solve it. As I remember the problem had to do with node-gyp and python. After I got node-gyp and the correct version of python installed things started working. |
I did upgrade the most I could... nothing... sudo apt-get install python2.7 git-all pkg-config libncurses5-dev libssl-dev libnss3-dev libexpat-dev I get : Setting up liblwp-protocol-https-perl (6.02-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
runit
git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1) I abandon... I'll test on a better config, as I'm on a chrooted ubuntu in parallel with a chromeOS in dev mode, not the better place to test ipfs ! Thank still for your help! |
@devingfx Im getting the same errors after running
Installing wrtc globally fixed this for me on linux, but its more of a quick fix than anything else. I am having this issue on osx as well as ubuntu 16 |
You don't need git-all btw. I got js-ipfs working just a few minutes ago with a |
On windows10, After clearing that,
So I eventually ended up doing this (or I could select the component from VS 2017)
But now one of the dependencies failed with:
Looks like it's optional? When do we actually need it? I still have to test if everything works as expected... |
It is used in
Before we were locking the repo with just a File, but now we are doing the same the go-ipfs is doing. @dignifiedquire applied this change, he will be able to share a bit more behind the decision there. |
We need to add the node-gyp installation instructions as requirement for install of js-ipfs on linux systems.
The text was updated successfully, but these errors were encountered: