npm install failing on ref dependency #94

Closed
squamos opened this Issue Dec 15, 2012 · 3 comments

3 participants

@squamos
$ sudo npm install ffi
npm http GET https://registry.npmjs.org/ffi/1.2.0
npm http 304 https://registry.npmjs.org/ffi/1.2.0
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/ref
npm http GET https://registry.npmjs.org/ref-struct
npm http 200 https://registry.npmjs.org/bindings
npm http 200 https://registry.npmjs.org/ref-struct
npm http 200 https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/ref

> ref@0.1.3 install /var/lib/jenkins/jobs/dispatch/workspace/node_modules/ffi/node_modules/ref
> node-gyp rebuild

sh: 1: node-gyp: not found
npm ERR! ref@0.1.3 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 127
npm ERR! 
npm ERR! Failed at the ref@0.1.3 install script.
npm ERR! This is most likely a problem with the ref 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 ref
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "node" "/usr/bin/npm" "install" "ffi"
npm ERR! cwd /var/lib/jenkins/jobs/dispatch/workspace
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/lib/jenkins/jobs/dispatch/workspace/npm-debug.log
npm ERR! not ok code 0
@TooTallNate

sh: 1: node-gyp: not found

Well that's rather strange... Perhaps try upgrading to node v0.8.16. v0.8.8 is pretty old already.

@petvetbr
node "C:\Program Files\nodejs\node
_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebu
ild
gyp ERR! configure error
gyp ERR! stack Error: Command failed:
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:540:15)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at maybeClose (child_process.js:638:16)
gyp ERR! stack     at Process._handle.onexit (child_process.js:680:5)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\user\node_modules\ffi\node_modules\ref
gyp ERR! node -v v0.8.16
gyp ERR! node-gyp -v v0.7.3
gyp ERR! not ok
npm ERR! ref@0.1.3 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the ref@0.1.3 install script.
npm ERR! This is most likely a problem with the ref 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 ref
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ffi"
npm ERR! cwd C:\Users\user
npm ERR! node -v v0.8.16
npm ERR! npm -v 1.1.69
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Fe\npm-debug.log
npm ERR! not ok code 0
@TooTallNate

I don't really know what to say here, but it's definitely something on your end I'm afraid. It seems to me like you're not getting a clean installation of npm and/or node-gyp or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment