Can't install bitcore-node

#1

npm install -g bitcore-node
help me I can’t install bitcore-node this is the error code.

bitcore-node@3.1.3 preinstall C:\Users\hahah\AppData\Roaming\npm\node_modules\bitcore-node
./scripts/download

‘.’ は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
npm ERR! Windows_NT 10.0.14393
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “-g” "bitcore-node"
npm ERR! node v4.5.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 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! C:\chat\npm-debug.log

1 Like

(Harsha) #2

I’ve seen this once or twice. Essentially, ./scripts/download is failing, probably because it’s timing out or one of the packages it’s trying to install is not compatible with your system.

That, or you have some weird proxys/are not connected to internet.

0 Likes

#3

Have the same problem - running windows 8.1 pro, and used the windows NVM manager to install Node v 4.2.0

Looks like a problem in the install package - as the node error is suggesting.

C:\Users\myuser\AppData\Roaming\nvm\v4.2.0>npm install -g bitcore

bitcore-node@3.1.3 preinstall C:\Users\myuser\AppData\Roaming\nvm\v4.2.0\node_modules\bitcore\node_modules\bitcore-nod
e
./scripts/download

‘.’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv “C:\Users\myuser\AppData\Roaming\nvm\v4.2.0\node.exe” “C:\Users\myuser\AppData\Roaming\nv
m\v4.2.0\node_modules\npm\bin\npm-cli.js” “install” “-g” "bitcore"
npm ERR! node v4.2.0
npm ERR! npm v2.14.7
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 their info via:
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! C:\Users\myuser\AppData\Roaming\nvm\v4.2.0\npm-debug.log

0 Likes

#4

Ok, so since there is no support here this is a way around it.

High level: You want to run a linux machine as a virtual machine on your windows machine

Simplified steps:
Install Oracle’s VM VirtualBox
Add a Linux virtual machine (I chose Ubuntu). Use a “fixed disk” option (10GB)
Download the latest ubuntu desktop iso file from ubuntu site
Under your VM point your storage to that iso file
Start the VM box
When prompted, install Ubuntu from the iso file in your downloads folder
Restart terminal.

You can then follow installation instructions for bitcore on this website

0 Likes