question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suddenly: Error while installing/updating Homebridge

See original GitHub issue

Hi,

suddenly installing/upgrading homebridge is giving me the following error/output:

npm install -g --unsafe-perm homebridge /usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebridge

curve25519-n@1.2.0 install /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n node-gyp rebuild

make: Entering directory ‘/usr/local/lib/node_modules/homebridge/node_modules/curve25519-n/build’ CXX(target) Release/obj.target/curve/node_curve.o as: symbol lookup error: /usr/lib/libbfd-2.25-system.so: undefined symbol: bfd_plug)n_arch curve.target.mk:93: recipe for target ‘Release/obj.target/curve/node_curve.o’ failed make: *** [Release/obj.target/curve/node_curve.o] Error 1 make: Leaving directory ‘/usr/local/lib/node_modules/homebridge/node_modules/curve25519-n/build’ gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12) gyp ERR! System Linux 4.9.35-v7+ gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n gyp ERR! node -v v10.0.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! curve25519-n@1.2.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the curve25519-n@1.2.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-05-11T10_57_42_574Z-debug.log

I’m running on rasping jessie und my homebridge was running fine until current update. How can I get it back working? I think the error is related to build essentials and/or one of its dependencies. Am I right? Or do I misinterpret something?

Any directions what I can do would be highly appreciated.

Thank you!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ebaauwcommented, May 11, 2018

After updating node (to another major version), uninstall homebridge and re-install it:

$ sudo npm -g un homebridge
$ sudo npm -g i homebridge --unsafe-perm
0reactions
tintoyukcommented, Oct 7, 2018

Not to necro-post, but in case it helps others: i had the same issue as dehsgr and it turned out i was missing the —unssafe-perm switch. i.e. after updating node i had to run

sudo npm uninstall -g homebridge 
sudo npm install -g —unsafe-perm homebridge
Read more comments on GitHub >

github_iconTop Results From Across the Web

Suddenly: Error while installing/updating Homebridge #1851
Hi, suddenly installing/upgrading homebridge is giving me the following error/output: npm install -g --unsafe-perm homebridge ...
Read more >
Homebridge all of a sudden giving me errors for SmartThings ...
Homebridge all of a sudden giving me errors for SmartThings plug-in. I've been running home bridge perfectly fine for the past 10 months....
Read more >
homebridge - npm
Homebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API. It supports Plugins, which...
Read more >
Hello. Having a problem all of a sudden with my HOOBS box ...
I got frustrated with it and walked away for a while. Now I'm trying again. trying to install updates. Can't figure out how...
Read more >
No Response HomeKit error? Here's the fix! - iMore
Seeing the dreaded No Response message in the Home app? Here's how to bring your HomeKit accessories back to life.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found