Comments (5)
Ah sorry I should have probably mentioned this in the README, but this plugin uses syntax only supported by node.js >= 6. If you're using Homebrew like you say, you should be able to run brew update && brew upgrade node
and you'll be on the latest version of node (v6.6.0 at the time of writing).
from homebridge-chamberlain.
Thanks Casey. I'm sure this would have fixed the problem, but I believe Homebridge itself is behind the curve on node.js 6.6.0. Error below for reference; thanks for your help! Closing this issue.
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/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:583:18)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
from homebridge-chamberlain.
You just have to run npm rebuild
and mdns
will work properly.
from homebridge-chamberlain.
Nothing about the homebridge code doesn't work on newer node versions, I'm running 6.6.0
in my house right now.
from homebridge-chamberlain.
For people who were running into similar problems, documented the process on how to make this work:
- Install NodeJS 4.x
- Follow
homebridge
andhomebridge-chamberlain
installation instructions all the way. - Update to NodeJS 6.x: http://thisdavej.com/upgrading-to-more-recent-versions-of-node-js-on-the-raspberry-pi/
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt install nodejs
- Go to HAP-NodeJS directory and rebuild some modules
cd /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules
npm rebuild mdns
npm rebuild bignum --build-from-source
npm rebuild ed25519
npm rebuild curve25519-n
from homebridge-chamberlain.
Related Issues (20)
- Thank you for api.js HOT 2
- Issuer in trust chain for myqexternal.myqdevice.com expired resulting in 'CERT_HAS_EXPIRED' errors HOT 1
- Offline garage door requires Homebridge restart HOT 4
- Error: invalid response, got HTTP 400: HOT 27
- Help With Wrong (and outdated) MYQ Garage door showing up in CarPlay dashboard (siri suggestion) HOT 2
- Starting 7/1/2020 the garage door gives "No Response" HOT 20
- FetchError HOT 3
- Anyone had luck with multiple doors and asking to open/close both/all doors at once? HOT 6
- New Api Change? HOT 1
- No Response to MyQ accessory in Homekit HOT 4
- Fetch Error HOT 19
- Removal of Homekit confirmation HOT 2
- No response error HOT 4
- Check status before opening HOT 2
- No Connection HOT 5
- Question - Remove LifeMaster myQ bridge HOT 2
- Additional Door states HOT 10
- Duplicate Device IDs for Two Garage Doors HOT 12
- Change type of device so HomeKit automations work without popup notification needing okay HOT 3
- Wrong status if button pressed while opening in progress HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-chamberlain.