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

Error: make failed with exit code: 2 #13

Open
shidevil opened this issue Dec 13, 2019 · 4 comments
Open

Error: make failed with exit code: 2 #13

shidevil opened this issue Dec 13, 2019 · 4 comments
Assignees

Comments

@shidevil
Copy link

Installing the homebridge-bme280 has error.

Node version 12.13.1
homebridge version 0.4.50

Code entered

sudo npm install -g --unsafe-perm https://github.com/NorthernMan54/homebridge-bme280

Error

i2c.target.mk:109: recipe for target 'Release/obj.target/i2c/src/i2c.o' failed
make: *** [Release/obj.target/i2c/src/i2c.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.75-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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 probably not a problem with npm. There is likely additional logging output above.

@Lehmann91
Copy link

Same issue

@NorthernMan54 NorthernMan54 self-assigned this Jan 13, 2020
@NorthernMan54
Copy link
Collaborator

I upped the dependancies on all the packages, and did a test on my machine with node 10.16.3 and it installed fine. Please try installing again

@Lehmann91
Copy link

Can confirm that. Worked on Node.js Version v12.14.1 and npm Version v6.13.6
Thanks!

@Lehmann91
Copy link

Just to add a note on another try:
Updating the deps to
"dependencies": { "bme280-sensor": "^0.1.7", "debug": "^4.1.1", "mcuiot-logger": "^0.0.12", "moment": "^2.24.0", "fakegato-history": "^0.5.6" }
and installing postman-request manually worked for me on node v12.16.1

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