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

install error on beagle bone black #3

Closed
simongerads opened this issue Dec 31, 2013 · 2 comments
Closed

install error on beagle bone black #3

simongerads opened this issue Dec 31, 2013 · 2 comments

Comments

@simongerads
Copy link

Hi,
i tried to install your library. I do get an error while trying to install it via: npm install lcd

npm http GET https://registry.npmjs.org/lcd
npm http 304 https://registry.npmjs.org/lcd
npm http GET https://registry.npmjs.org/onoff
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/onoff
npm http 304 https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/epoll
npm http 304 https://registry.npmjs.org/epoll
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan

epoll@0.1.2 install /usr/lib/node_modules/lcd/node_modules/onoff/node_modules/epoll
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v2.7.3, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:118:14)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:107:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:538:7)
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 Linux 3.8.13
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/lcd/node_modules/onoff/node_modules/epoll
gyp ERR! node -v v0.8.22
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok
npm ERR! epoll@0.1.2 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the epoll@0.1.2 install script.
npm ERR! This is most likely a problem with the epoll 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 epoll
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.8.13
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "lcd"
npm ERR! cwd /usr/lib/node_modules
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/lib/node_modules/npm-debug.log
npm ERR! not ok code 0

i already wrote the epoll guy a message.

@fivdi
Copy link
Owner

fivdi commented Dec 31, 2013

That looks like the error described here. It's a terminal type issue. Can you try the following and let me know if it works please:

TERM=none npm install lcd

If that doesn't work, what should work is modifying /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js as described here. The error doesn't occur with new versions of node/npm/node-gyp. More info can be found here.

@simongerads
Copy link
Author

it solved the problem and works great now. thank you

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