Failed at the bitcore-node@3.1.3 preinstall script './scripts/download' 设置linux proxy (代理)的方式
此问题发生的条件是:
用bitcore官方提供的方式在linux进行npm安装,报错:
Downloading bitcoin: https://github.com/bitpay/bitcoin/releases/download/v0.12.1-bitcore-4/
npm ERR! Linux 3.16.0-4-686-pae
npm ERR! argv "/home/user/.nvm/versions/node/v4.6.0/bin/node" "/home/user/.nvm/versions/node/v4.6.0/bin/npm" "install" "-g" "bitcore"
npm ERR! node v4.6.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! bitcore-node@3.1.3 preinstall: ./scripts/download
npm ERR! Exit status 22
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! /home/user/npm-debug.log
此后更换了各种npm源,都不能解决。大家都知道中国的墙很高,所以FQ,但是在linux下配vpn的方法比较复杂,所以我在自己的一台设置好vpn的电脑上安装了CCProxy,作为linux的代理,然后在linux下设置npm proxy: