I am getting the following error when starting home bridge:
This was starting ok:
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:62
let port = this._tcpServer.address().port;
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:11:25)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Errors on startup after latest update of home bridge and ind
Re: Errors on startup after latest update of home bridge and
The latest version of homebridge requires a newer version of node to be installed. I haven't had a chance to play with it yet myself.
You can try:
But I haven't tested that myself yet.
-Mike
You can try:
Code: Select all
sudo port uninstall nodejs
sudo port install nodejs6
-Mike
Re: Errors on startup after latest update of home bridge and
I get the following message when installing:
sudo port uninstall nodejs
sudo: port: command not found
sudo port uninstall nodejs
sudo: port: command not found
Re: Errors on startup after latest update of home bridge and
How did you install nodejs?
Re: Errors on startup after latest update of home bridge and
You'll need to get nodejs upgraded to version 6. I don't know the commands for you to use since you installed differently from my instructions.
Re: Errors on startup after latest update of home bridge and
I upgraded to node 6.7
now the following error
iMacOffice:~ rc$ node -v
v6.7.0
iMacOffice:~ rc$ homebridge
/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
throw ex;
^
Error: Module version mismatch. Expected 48, got 14.
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/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
now the following error
iMacOffice:~ rc$ node -v
v6.7.0
iMacOffice:~ rc$ homebridge
/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
throw ex;
^
Error: Module version mismatch. Expected 48, got 14.
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/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
Re: Errors on startup after latest update of home bridge and
Sounds like you have a mix of old and new versions.
Re: Errors on startup after latest update of home bridge and
I had to install the nodejs LTS. (Latest stable version or something like that) I don't have the exact commands in front of me. If I remember, I used npm to install n and the n lts with sudo? Probably best to google it rather than trust my memory.
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: Errors on startup after latest update of home bridge and
I had to run the following script to uninstall node and nom.
https://gist.github.com/mutongwu/c0832c ... fd8bacd6a2
I then installed the OSX LTS V4.6.0 package
Then reinstalled homebridge and it is now starting.
IOS app is still not connecting but I guess I will have to delete all persist info and try setting it up again and remove my home location.
https://gist.github.com/mutongwu/c0832c ... fd8bacd6a2
I then installed the OSX LTS V4.6.0 package
Then reinstalled homebridge and it is now starting.
IOS app is still not connecting but I guess I will have to delete all persist info and try setting it up again and remove my home location.