Problem during installation on ubuntu
Hello, i have this issues, during the installation from npm go in error:
`root@bitcore-node:~# npm install -g bitcore-node npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] ./scripts/download /usr/local/lib/node_modules/.staging/bitcore-node-13d6c893 /usr/local/bin/bitcore-node -> /usr/local/lib/node_modules/bitcore-node/bin/bitcore-node build → rollbackFailedOpt ▌ ╢██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░╟ npm ERR! Linux 4.4.0-57-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "bitcore-node" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! path /usr/local/lib/node_modules/bitcore-node/bin/bitcoind npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/bitcore-node/bin/bitcoind' npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/bitcore-node/bin/bitcoind' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent
npm ERR! Please include the following file with any support request: npm ERR! /root/npm-debug.log root@bitcore-node:~# `
same problem occured either, trying to resolve it with
--unsafe-perm=true not working
Thanks a lot now work!
Running on Ubuntu 16.4, the install did not work, either without 'sudo' as the bitcore.io guide says, to with 'sudo' The fix was: sudo npm install -g --unsafe-perm=true bitcore-node
Previously, it did not help to add to package.json "config": { "unsafe-perm": true },
Thanks a lot!