Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Ubuntu saucy, node-gyp rebuild error ? #92

Closed
Armenia opened this issue Dec 14, 2013 · 2 comments
Closed

Ubuntu saucy, node-gyp rebuild error ? #92

Armenia opened this issue Dec 14, 2013 · 2 comments

Comments

@Armenia
Copy link

Armenia commented Dec 14, 2013

Hi!. I'm trying to install contextify, but it is failing with node-gyp rebuild error.
I've tried several things before posting here: builidng nodejs from sources, installing form apt-get repository, installing node-gyp globally (npm install -g node-gyp) and without it.

How to be ?

sudo npm install -g contextify
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

contextify@0.1.6 install /usr/lib/node_modules/contextify
node-gyp rebuild

Traceback (most recent call last):
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
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:337:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.11.0-14-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/contextify
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! contextify@0.1.6 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.6 install script.
npm ERR! This is most likely a problem with the contextify 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 contextify
npm ERR! There is likely additional logging output above.

@brianmcd
Copy link
Owner

It looks like it's failing in Python, so I'd guess something with node-gyp and your system configuration.

@franckuser16
Copy link

Maybe a gyp issue, related to nodejs/node-gyp#363
Seems that you have gyp installed has a ubuntu package AND npm package. Removing ubuntu package worked for me.

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

No branches or pull requests

3 participants