Having this issue when running Homebridge. I've tried npm rebuild and npm -r on the mdns module and reinstalling it. No luck.
~$ node -v
v6.2.2
~$ npm -v
3.5.2
openhab@openhab:~$ homebridge
/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
throw ex;
^
Error: Module version mismatch. Expected 48, got 46.
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
I'm having this same issue. If you figure it out let me know. I wonder if finding a newer version of libavahi-compat-libdnssd-dev would fix it?
I was able to fix it by rolling back to node 4.0 .0
On Sat, Sep 17, 2016 at 11:22 AM Brian Hanifin [email protected]
wrote:
I'm having this same issue. If you figure it out let me know. I wonder if
finding a newer version of libavahi-compat-libdnssd-dev would fix it?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nfarina/homebridge/issues/767#issuecomment-247795468,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIh_90VNF9rHtBT7BdZ0PjXzE4SKG-gks5qrDAAgaJpZM4J90IA
.
I installed node-v4.5.0-linux-arm64 using this method, then reinstalled homebridge. I chose 4.5.0 because the node.js site says that is their LTS version.
I am further along (I think), now I am getting a "Error: Not a valid username: undefined. Must be 6 pairs of colon-separated hexadecimal chars (A-F 0-9), like a MAC address." But I can work with that. :)
Fixed by username added to conf. :)
Close this issue down kind admin.
For MacOS Sierra, I had to
brew uninstall --force node
brew tap homebrew/versions
brew install homebrew/versions/node4-lts
npm install -g homebridge
Now I get the not a valid username error. @brianhanifin How did you fix that? I'm using Wink, and my username is an email address which doesn't conform to a MAC address style.
Edit: nevermind, I guess the username it was asking for is the bridge object and not the platforms.
This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.
Most helpful comment
I was able to fix it by rolling back to node 4.0 .0
On Sat, Sep 17, 2016 at 11:22 AM Brian Hanifin [email protected]
wrote: