bitcore-node icon indicating copy to clipboard operation
bitcore-node copied to clipboard

Problem during installation on ubuntu

Open stefanosirplay opened this issue 9 years ago • 4 comments

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:~# `

stefanosirplay avatar Jan 05 '17 11:01 stefanosirplay

same problem occured either, trying to resolve it with

--unsafe-perm=true not working

privatenode avatar Jan 11 '17 09:01 privatenode

Thanks a lot now work!

stefanosirplay avatar Jan 20 '17 20:01 stefanosirplay

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 },

tearodactyl avatar Mar 01 '17 19:03 tearodactyl

Thanks a lot!

ghost avatar Jul 26 '18 20:07 ghost