Can't run on nodejs v10 and upper
See original GitHub issueHelp !!! Homebridge was working good with nodejs 8.x . I want to update nodejs , but then I can’t start homebridge.
pi@raspberrypi:~ $ homebridge -I /usr/local/lib/node_modules/hap-nodejs/node_modules/bindings/bindings.js:91 throw e ^
Error: The module ‘/usr/local/lib/node_modules/hap-nodejs/node_modules/ed25519-hap/build/Release/ed25519.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 67. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
or npm install
).
at Object.Module._extensions…node (internal/modules/cjs/loader.js:857:18)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at bindings (/usr/local/lib/node_modules/hap-nodejs/node_modules/bindings/bindings.js:84:48)
at Object.<anonymous> (/usr/local/lib/node_modules/hap-nodejs/node_modules/ed25519-hap/index.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
pi@raspberrypi:~ $
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
@mafyata Try
cd /usr/local/lib/node_modules/
sudo npm rebuild --unsafe-perm
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.