我试图在Windows 10和Ubuntu 18上安装bitcore,但不能。
我已按照以下步骤操作:
# Install NVM (1)
# Install script
# With CURl
# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# or Wget:
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
将源代码行添加到您的个人资料(〜/ .bash_profile,〜/ .zshrc,〜/ .profile或〜/ .bashrc)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Install Node.js v4 LTS
nvm install v4
# Install ZeroMQ and Tools
apt-get install libzmq3-dev build-essential
# Install Bitcore
npm install -g bitcore
更多信息
但是当我运行它时,出现以下错误
$ npm install -g bitcore
输出
> bitcore-node@3.1.3 preinstall C:\Users\User\AppData\Roaming\npm\node_modules\bitcore\node_modules\bitcore-node
> ./scripts/download
"." no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
npm WARN Error: EPERM: operation not permitted, lstat 'C:\Users\User\AppData\Roaming\npm\node_modules\bitcore\node_modules\utf-8-validate\node_modules'
npm WARN { Error: EPERM: operation not permitted, lstat 'C:\Users\User\AppData\Roaming\npm\node_modules\bitcore\node_modules\utf-8-validate\node_modules'
npm WARN stack: 'Error: EPERM: operation not permitted, lstat \'C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\bitcore\\node_modules\\utf-8-validate\\node_modules\'',
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'lstat',
npm WARN path: 'C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\bitcore\\node_modules\\utf-8-validate\\node_modules' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bitcore-node@3.1.3 preinstall: `./scripts/download`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bitcore-node@3.1.3 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2018-06-24T12_23_42_800Z-debug.log
npm install -g bitcore
输出
> bitcore-node@3.1.3 preinstall /root/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node
> ./scripts/download
./scripts/download: line 30: cd: /root/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node/scripts/../bin: Permission denied
npm ERR! Linux 4.15.0-22-generic
npm ERR! argv "/root/.nvm/versions/node/v4.9.1/bin/node" "/root/.nvm/versions/node/v4.9.1/bin/npm" "install" "-g" "bitcore"
npm ERR! node v4.9.1
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! bitcore-node@3.1.3 preinstall: `./scripts/download`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bitcore-node@3.1.3 preinstall script './scripts/download'.
npm ERR! This is most likely a problem with the bitcore-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./scripts/download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bitcore-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls bitcore-node
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
执行它的某人看到错误的步骤,或者相同的事情发生在他身上,他已经解决了。