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.

new NodeJS and npm versions

See original GitHub issue

Hi.

Just got updated to new Node.Js and NPM versions and Homebrigde refuses to lunch

0|homebrid | Error: The module ‘/usr/lib/node_modules/homebridge/node_modules/mdns/build/Release/dns_sd_bindings.node’ 0|homebrid | was compiled against a different Node.js version using 0|homebrid | NODE_MODULE_VERSION 51. This version of Node.js requires 0|homebrid | NODE_MODULE_VERSION 57. Please try re-compiling or re-installing 0|homebrid | the module (for instance, using npm rebuild or npm install). 0|homebrid | at Object.Module._extensions…node (module.js:598:18) 0|homebrid | at Module.load (module.js:503:32) 0|homebrid | at tryModuleLoad (module.js:466:12) 0|homebrid | at Function.Module._load (module.js:458:3) 0|homebrid | at Module.require (module.js:513:17) 0|homebrid | at require (internal/module.js:11:18) 0|homebrid | at Object.<anonymous (/usr/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20) 0|homebrid | at Module._compile (module.js:569:30) 0|homebrid | at Object.Module._extensions…js (module.js:580:10) 0|homebrid | at Module.load (module.js:503:32)

$ node -v v8.0.0 $ npm -v 5.0.0

Seems we might need to get some update.

Regards, Miguel

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
nicoh88commented, Mar 28, 2018

ERROR

/usr/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
    ^

Error: The module '/usr/lib/node_modules/homebridge/node_modules/mdns/build/Release/dns_sd_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).

FIX (DOCUMENTATION)

npm uninstall homebrigde -g
rm -Rf /usr/lib/node_modules/homebridge/
npm install homebridge -g --unsafe-perm

Works for me.

3reactions
morilmcommented, Jun 1, 2017

Thanks Snowdd1

I just sudo unistall homebrige…

sudo npm uninsstall homebrigde -g

and reinstall again

sudo npm install -g --unsafe-perm homebridge

this fixed the issue!!!

thanks for the tip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Previous Releases - Node.js
Version Date V8 npm NODE_MODULE_VERSION Node.js 19.3.0 2022‑12‑14 10.8.168.21 9.2.0 111 Downloads C... Node.js 19.2.0 2022‑11‑29 10.8.168.20 8.19.3 111 Downloads C... Node.js 19.1.0 2022‑11‑14 10.7.193.20 8.19.3...
Read more >
Downloading and installing Node.js and npm
Node version managers allow you to install and switch between multiple versions of Node.js and npm on your system so you can test...
Read more >
How to Update Node and NPM to the Latest Version
npm install -g n. You'll need to install this package globally as it manages the Node versions at the root. · n lts...
Read more >
Which versions of npm came with which versions of node?
At https://nodejs.org/dist/ there is index.json which indicates each version of nodejs and which version of npm is bundled with it.
Read more >
Download & Update Node.js to the Latest Version! Node v19 ...
Node.js 18 is the 'Current' release for the next 6 months and then promoted to Long-term Support (LTS) in October 2022. Node.
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