lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
570 stars 285 forks source link

Potential missing package issue #543

Open cr3ative opened 4 years ago

cr3ative commented 4 years ago

Hiya, I upgraded to latest, and homebridge failed to boot; my system was missing hap-nodejs which appears to have silently become required in the latest package. Stack trace:

[1/18/2020, 05:10:06] ERROR LOADING PLUGIN homebridge-broadlink-rm:
[1/18/2020, 05:10:06] Error: Cannot find module 'hap-nodejs'
Require stack:
- /usr/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/accessory.js
- /usr/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/index.js
- /usr/lib/node_modules/homebridge-broadlink-rm/platform.js
- /usr/lib/node_modules/homebridge-broadlink-rm/index.js
- /usr/lib/node_modules/homebridge/lib/plugin.js
- /usr/lib/node_modules/homebridge/lib/server.js
- /usr/lib/node_modules/homebridge/lib/cli.js
- /usr/lib/node_modules/homebridge/bin/homebridge

Resolved with sudo npm i -g hap-nodejs but I think there might be a package.json issue somewhere at play here.

mbezzo commented 4 years ago

I'm seeing this exact same issue fwiw

luisfosoares commented 4 years ago

Same here...

imonk219 commented 4 years ago

Having the same issue

edit: sudo npm i -g hap-nodejs seemed to have done the trick but agree with op here.

skb3735 commented 4 years ago

Same

wailuen commented 4 years ago

Yep... same and installing the hap-nodejs resolve it.

But this new version still have issues in discovery.

ocsocs commented 4 years ago

Just for the record, same here. Discovery issues seem to be resolved for me by the „hosts“ item in config; until I've added it, the device was invisible most of the time.