Closed ethempekin closed 2 years ago
I can't even begin to try and help you with that little information.
I will Copy here the error I got when I restart my homebridge. I did not since I read a comment of yours related to installation problem and nor support for v16.13.0. I recall that the error mentions an installation issue in my case as well. Two sensors were fine and now they do not show at all.
There's no issue with running this plugin on node v16.13.0, I do it myself. It's most likely an issue with your system, make sure that you've read the README.
I see. Here is my error from the log:
[21/11/2021, 23:26:42] ==================== [21/11/2021, 23:26:42] ERROR INITIALIZING PLUGIN homebridge-mi-hygrothermograph: [21/11/2021, 23:26:42] Error: The module '/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 93. Please try re-compiling or re-installing the module (for instance, using
npm rebuildor
npm install). at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:6:15) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) [21/11/2021, 23:26:42] ====================
The error message clearly states that the plugin was compiled against an older node version. You can remove the directory /usr/local/lib/node_modules/homebridge-mi-hygrothermograph/
and reinstall.
Also see: https://github.com/hannseman/homebridge-mi-hygrothermograph/issues/124
Thanks. Would you guide me to the relevant source for removing directories via the Terminal.
On Mon, 22 Nov 2021 at 16:48, Hannes Ljungberg @.***> wrote:
The error message clearly states that the plugin was compiled against an older node version. You can remove the directory /usr/local/lib/node_modules/homebridge-mi-hygrothermograph/ and reinstall.
Also see:
124
https://github.com/hannseman/homebridge-mi-hygrothermograph/issues/124
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hannseman/homebridge-mi-hygrothermograph/issues/166#issuecomment-975661361, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXL5M6NGVWV4XJVMKJOW5DUNJQ6RANCNFSM5IPU2AVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
With 1.3.6 Node.js Version | v16.13.0 npm v8.1.0
I fail to access my sensors. Will there be any action to correct this?