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

AttributeError: 'module' object has no attribute 'script_main' #370

Closed
athingisathing opened this issue Dec 17, 2013 · 4 comments
Closed

Comments

@athingisathing
Copy link

npm http 304 https://registry.npmjs.org/browser-pack

[email protected] install /usr/local/lib/node_modules/derby/node_modules/racer/node_modules/share/node_modules/livedb/node_modules/hiredis
node-gyp rebuild

[email protected] /usr/local/lib/node_modules/derby/node_modules/stylus
├── [email protected]
├── [email protected]
└── [email protected]
[email protected] /usr/local/lib/node_modules/derby/node_modules/nib
└── [email protected] ([email protected], [email protected], [email protected])
Traceback (most recent call last):
File "/usr/local/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/local/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 2.6.32-358.6.2.el6.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/derby/node_modules/racer/node_modules/share/node_modules/livedb/node_modules/hiredis
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok

This is the similar to issue 363 but i have done all the steps in that post and it still does not work. I also checked to make sure i had python 2.6 installed because this would definatly fail in 2.7 fyi...

I am running a clean new build of centos with dev tools and installed node from joyents instructions and then installed npm then got this error with pm2 install along with derby install. I also re installed npm from scratch...

any other thoughts?

when installing node-gyp from scratch i get no errors fyi

@dcolens
Copy link

dcolens commented Jan 2, 2014

changing the node-gyp version to ~0.11.0 in npm's package.json (and running npm update) fixed it. (maybe 0.12.0 is fine too did not try that one, tried 12.1 and 12.2).

Installing the latest node from source had no effect, only solution was to downgrade node-gyp on my centos 6 VM.

@MichaelBailly
Copy link

Same here with the installation of libxml-to-js with (self compiled) node 0.10.24 on Ubuntu 13.10.

Thanks @dcolens for the trick !

@springmeyer
Copy link
Contributor

this is likely due to duplicate/conflicting gyp installs, see #363 (comment)

@TooTallNate
Copy link
Contributor

Closing. Dup of #363.

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

5 participants