Skip to content

Unable to install module #1

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

Closed
deadprogram opened this issue Jan 26, 2014 · 4 comments
Closed

Unable to install module #1

deadprogram opened this issue Jan 26, 2014 · 4 comments

Comments

@deadprogram
Copy link
Member

Pulled down master and tried to npm install and I got this backtrace:

> [email protected] install /home/ron/Development/cylonjs/cylon-digispark
> node-gyp rebuild

Traceback (most recent call last):
  File "/home/ron/Development/cylonjs/cylon-digispark/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    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 (/home/ron/Development/cylonjs/cylon-digispark/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-12-generic
gyp ERR! command "node" "/home/ron/Development/cylonjs/cylon-digispark/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/ron/Development/cylonjs/cylon-digispark
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the cylon-digispark 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 cylon-digispark
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/ron/Development/cylonjs/cylon-digispark
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ron/Development/cylonjs/cylon-digispark/npm-debug.log
npm ERR! not ok code 0
@zankich
Copy link
Contributor

zankich commented Jan 26, 2014

Checking it out

@zankich
Copy link
Contributor

zankich commented Jan 26, 2014

@deadprogram, I've successfully build the module on two different machines with no problem, I do notice that you are running an older version of node, can you please update to the latest version and try again?

@deadprogram
Copy link
Member Author

I was able to get it to build by first, following the instructions at nodejs/node-gyp#363 (comment), and then doing a sudo apt-get install libusb-dev

This should get put into the README probably...

@zankich
Copy link
Contributor

zankich commented Jan 26, 2014

Updated the readme with the appropriate information

@zankich zankich closed this as completed Jan 26, 2014
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

2 participants