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

node 8.0.0 and last homebridge - mqtt dont work #83

Closed
uronito opened this issue Jun 3, 2017 · 2 comments
Closed

node 8.0.0 and last homebridge - mqtt dont work #83

uronito opened this issue Jun 3, 2017 · 2 comments
Assignees

Comments

@uronito
Copy link

uronito commented Jun 3, 2017

With node 8.0.0 and last homebridge mqtt updates dont work

@rswilem
Copy link
Collaborator

rswilem commented Jun 6, 2017

Hi @uronito,

Are you receiving the below error?

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

Error: The module '.../homebridge/node_modules/mdns/build/Release/dns_sd_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. 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`).
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (.../homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)

The fix is quite simple: try executing a npm rebuild in the homebridge folder. If that does not work, try a npm install.

@rswilem
Copy link
Collaborator

rswilem commented Jul 20, 2017

This issue was related to the keepAliveTimeout setting being changed in the newest NodeJS versions.

I can confirm this issue is now resolved. To resolve, update the modules to the latest version in the homebridge directory.

nodejs/node#13391

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