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

npm install error gyp rebuild #324

Closed
gregtampa opened this issue Jun 18, 2015 · 3 comments
Closed

npm install error gyp rebuild #324

gregtampa opened this issue Jun 18, 2015 · 3 comments

Comments

@gregtampa
Copy link

To install Insight, clone the main repository:

$ git clone https://github.com/bitpay/insight.git && cd insight
Install dependencies:

$ npm install

I get error...

here is the logs:

73374 info postuninstall insight-bitcore-api@0.2.11
73375 silly gentlyRm /root/insight/node_modules/insight-bitcore-api is being purged from base /root/insight
73376 verbose gentlyRm don't care about contents; nuking /root/insight/node_modules/insight-bitcore-api
73377 silly vacuum-fs purging /root/insight/node_modules/insight-bitcore-api
73378 silly vacuum-fs quitting because other entries in /root/insight/node_modules
../bignum.cc: In static member function âstatic v8::Handle<v8::Value> BigNum::Bjacobi(const int&)â:
../bignum.cc:951:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make: *** [Release/obj.target/bignum/bignum.o] Error 1
make: Leaving directory `/root/insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/bignum/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.16.0-38-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /root/insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/bignum
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE

npm ERR! base58-native@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the base58-native@0.1.2 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the base58-native package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls base58-native
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/insight/npm-debug.log
root@sprnde:~/insight# node insight.js
module.js:338
    throw err;
          ^
Error: Cannot find module '/root/insight/insight.js'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.6
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.6 20
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10

you can switch between 2.6 & 2.7 using:

sudo update-alternatives --config python

did this to use 2.6 python as shown on https://github.com/bitpay/copay troubleshooting section.

still error outs.

npm ERR! base58-native@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the base58-native@0.1.2 install script 'node-gyp rebuild'.

nodejs/node-gyp#363 (comment)
reading this and tryin the solutions didn't help niether.
but this is like the same issue exit code 2 and node-gyp rebuild is the issue.

also tried:
rm -rf node_modules/
npm install

SyntaxError: invalid syntax
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.16.0-38-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/insight-api/node_modules/bitcore/node_modules/x11-hash
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE

npm ERR! base58-native@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the base58-native@0.1.2 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the base58-native package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls base58-native
npm ERR! There is likely additional logging output above.

any help with this would be great.

@mattdoiron
Copy link

Hi, I had a similar error, but was able to solve it according to this issue over at insight. Seems to come down to insight not supporting nodejs v0.12.x (0.10.x only).

@braydonf
Copy link
Contributor

braydonf commented Sep 2, 2015

That's correct, Node.js 0.10.x is only support with the current master branch. The updates for Bitcore Node + Insight API will work with Node.js 0.12.

@braydonf
Copy link
Contributor

braydonf commented Nov 4, 2015

No longer relevant. Also note, Node.js v4.2 and 0.12 are now currently supported.

@braydonf braydonf closed this as completed Nov 4, 2015
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

3 participants