question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error loading plugin, Cannot find module 'hap-nodejs' with Homebridge V1.0 and up - fixed in Defensor7 fork

See original GitHub issue
[4/27/2020, 12:15:38 PM] ERROR LOADING PLUGIN homebridge-broadlink-rm:
[4/27/2020, 12:15:39 PM] Error: Cannot find module 'hap-nodejs'
Require stack:
- /homebridge/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/accessory.js
- /homebridge/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/index.js
- /homebridge/node_modules/homebridge-broadlink-rm/platform.js
- /homebridge/node_modules/homebridge-broadlink-rm/index.js
- /usr/local/lib/node_modules/homebridge/lib/plugin.js
- /usr/local/lib/node_modules/homebridge/lib/pluginManager.js
- /usr/local/lib/node_modules/homebridge/lib/api.js
- /usr/local/lib/node_modules/homebridge/lib/index.js
- /usr/local/lib/node_modules/homebridge/lib/cli.js
- /usr/local/lib/node_modules/homebridge/bin/homebridge
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/src/accessory.ts:3:1)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
[4/27/2020, 12:15:39 PM] ====================

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
gargamelonlycommented, May 9, 2020

I installed Defensor7/homebridge-broadlink-rm plugin which is a fork of this one and it is working also with RM3mini. He fixed it in his fork.

1reaction
gargamelonlycommented, May 1, 2020

It feels like this plugin has been abandoned by the creator.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node Update Error : r/homebridge - Reddit
When I attempt to update to v16.13.2 and v8.1.2, I receive the following error logs.. Error: Cannot find module 'bonjour'. r/homebridge - ...
Read more >
How to fix : cannot find Module error in while running the npm ...
In my application, npm run build command throws a module not found error as below: npm WARN npm npm does not support Node.js...
Read more >
HomeKit and Particle Photon integration - Project Share
Here in this sample, I am using Homebridge and HAP-NodeJS to emulate HomeKit API. ... Loading 1 accessories... module.js:338 throw err; ^ Error:...
Read more >
Top 5 hap-nodejs Code Examples - Snyk
uuid); // Identification Event bridge.on('identify', (paired, callback) => { console.logger.info('HomeKit paired:', paired); callback(); }); const modules = ...
Read more >
homebridge: Versions - Openbase
Upgrade hap-nodejs to v0.10.4 containing minor bug fixes by @Supereg ... Homebridge will no longer crash if a plugin cannot be found for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found