Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed at the [email protected] preinstall script './scripts/download' #1436

Closed
Noperslol123 opened this issue Dec 24, 2016 · 18 comments
Closed

Comments

@Noperslol123
Copy link

Noperslol123 commented Dec 24, 2016

-edit-
The issue seems to be with the bitcore-node NPM module concerning unsupported i686 architecture. There seems to be a proposed fix, but it has yet to be merged. (bitpay/bitcore-node#486)

I cannot get Bitcore to install on Ubuntu or Whonix. I have successfully gotten it to install on Centos 7 and have finished development of my project, but I would like to deploy on a Debian distro rather than Red Hat. For some reason, NPM will not install Bitcore on the Debian distros specified above. Below are the exact steps that I am performing on a fresh OS install via Virtual Box.

First we have to install NVM, which is a Node.js version manager. Bitcore is reportedly only compatible with Node.js version 4.6.0. We will use NVM to install that version.

https://github.com/creationix/nvm#install-script
sudo apt-get install git-all
sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash

At this point, close and reopen your terminal so that NVM will be detected. To verify NVM has been installed, do..
command -v nvm
Which should output ‘nvm’. Next we’ll install bitcore.

https://bitcore.io/guides/full-node/
nvm install v4.6.0
sudo apt-get install libzmq3-dev build-essential
npm install -g bitcore

Below is the output that I am getting.

`user@host:~$ npm install -g bitcore

[email protected] preinstall /home/user/.nvm/versions/node/v4.6.0/lib/node_modules/bitcore/node_modules/bitcore-node
./scripts/download
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! [email protected] preinstall: ./scripts/download
npm ERR! Exit status 22
npm ERR!
npm ERR! Failed at the [email protected] 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
user@host:~$
`

If any other info is needed, I will do my best to provide it.

@LeJ0ker
Copy link

LeJ0ker commented Jan 31, 2017

same

@LeJ0ker
Copy link

LeJ0ker commented Jan 31, 2017

i have it.
Just install curl xD

@rjmacarthy
Copy link

rjmacarthy commented Feb 8, 2017

How to fix this on windows? I added curl to environment path, didn't fix the issue?

Edit:

Never mind, its a bash script will try on linux.

@sampleblood
Copy link

it happens when download file from github ,I fixed it by export in .bashrc.
export http_proxy="http://server:port/"
export https_proxy="http://server:port/"
export ftp_proxy="http://server:port/"

@kangasbros
Copy link

Having the same problem, anyone know a fix?

@sampleblood
Copy link

when download file from github ,it use curl ,so be sure that your curl is ok

@rvdende
Copy link

rvdende commented Mar 2, 2017

sudo apt install curl

@huanvliu
Copy link

same issue on ubantu 16

@bellaj
Copy link

bellaj commented Aug 26, 2017

I think this issue comes from the used node/npm version

@takeratta
Copy link

same issue on Ubuntu 17.10 x64

@Lalitpatadiya12
Copy link

Same issue on centos 6.9 any idea ?

@superzitao
Copy link

Same issue on ubuntu14,anyone tell me how to fix it

@usab
Copy link

usab commented Dec 9, 2017

Same issue win 7

@qshuai
Copy link

qshuai commented Dec 13, 2017

I have encountered this problem。 Just using flowing command:

npm install -g --unsafe-perm=true bitcore

@rohitpratapitm
Copy link

Still same issue on windows 10. Anyone has a work around.

@phongnguyen6691
Copy link

phongnguyen6691 commented Feb 26, 2018

anyone can help, same issue on win 10 even I tried with command suggested from @rohitpratapitm :(
image

@Guanyuhao
Copy link

我也尝试了npm install -g --unsafe-perm=true bitcore 可是还是遇到相同的问题

@lerennardleonard
Copy link

@Guanyuhao worked for me, cheers !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests