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

npm install i2c fails on BeagleBone #84

Open
billtrudell opened this issue Apr 7, 2017 · 2 comments
Open

npm install i2c fails on BeagleBone #84

billtrudell opened this issue Apr 7, 2017 · 2 comments

Comments

@billtrudell
Copy link

An install of i2c on a Beaglebone Green, with relatively new/updated Nodejs and NPM, is failing? Any clues?

verbose stack Error: [email protected] install: node-gyp rebuild
verbose stack spawn ENOENT
verbose stack at ChildProcess. (/root/nodejs/lib/node_modules/npm/lib/utils/spawn.js:33:16)
verbose stack at emitTwo (events.js:106:13)
verbose stack at ChildProcess.emit (events.js:194:7)
verbose stack at maybeClose (internal/child_process.js:899:16)
verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
verbose pkgid [email protected]
verbose cwd /home/examples.i2c
error Linux 4.4.9-ti-r25
error argv "/root/nodejs/bin/node" "/usr/local/bin/npm" "install" "i2c"
error node v7.8.0
error npm v4.2.0
error file sh
error code ELIFECYCLE
error errno ENOENT
error syscall spawn
error [email protected] install: node-gyp rebuild
error spawn ENOENT
error Failed at the [email protected] install script 'node-gyp rebuild'.
2017-04-07T19_39_40_305Z-debug.txt

@joeboyscout04
Copy link

I'm getting similar errors with "npm install i2c" on both my mac and raspberry pi:

npm ERR! [email protected] install: node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the i2c 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 i2c
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.9.41+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "piglow"
npm ERR! cwd /home/pi
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/npm-debug.log`

@OGVCelsius
Copy link

Did you solve the problem? Because I have the same happening right now. My node version is 8.11.2 and my "body-parser": "^1.18.3",
"express": "^4.16.3",
"mongodb": "^3.1.1",
"mqtt": "^2.18.3",
"npm": "^6.2.0",
"server": "^1.0.18"

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

3 participants