Closed SemoTech closed 2 years ago
@SemoTech Looks like there is an issue with npm dependencies. This plugin hasn't changed in 7 months. Did something change you your end? Perhaps you updated node. If that's the case, you can uninstall and reinstall the plugin through Homebridge.
Hi @asednev and thanks for the quick reply.
I think the point you just made that the plugin has not changed for 7 months is the issue, as it seems to be dependent on an older version of Node.Js based on the error log stating: "compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 93", and I am running the latest version. So to me that means the plugin needs to be re-compiled, no?
And just to further clarify, are you saying that if I uninstall and re-install homebridge-plugin-govee v1.1.2 it will be compatible with the latest Node.Js version 16.13.0, as it was complied for NODE_MODULE_VERSION 93?
Thank you.
I don't think Node 16 will work. I tried it several week ago and some of dependencies didn't support it.
I recommend going with Node 14 at this time.
@asednev thanks for confirming incompatibility with Node.JS 16.13.0.
Sadly I cannot downgrade as that would impact other plugins.
Since your plugin is 7 months old, are you not able to re-compile for "NODE_MODULE_VERSION 93" to keep it up-to-date?
Thank you.
@SemoTech Node compiles modules during npm install
if necessary. As dependencies change, you should be able to take advantage of support for newer node modules.
Looking at the call stack:
[31/10/2021, 12:17:10] Error: The module '/usr/local/lib/node_modules/homebridge-plugin-govee/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node'
was compiled against a different Node.js version using
The root of the problem is in @abandonware/bluetooth-hci-socket
.
When time permits, I'll take a look if there's anything that I need to do with regard to dependencies.
That's greatly appreciated @asednev and glad you got to the bottom of it. Will wait to hear back when it is ready so I can re-try...
Thank you.
This same issue came up with my govee plugin. All you need to do is uninstall and reinstall the plugin.
sudo npm uninstall homebridge-plugin-govee -g
sudo npm install homebridge-plugin-govee -g
@bwp91 and @asednev,
I followed Ben's suggestion above to uninstall and re-install, and the govee plugin is working again!
Thank you both, problem solved!
I actually came on this repo to see if the H5177 was supported, got distracted by this issue 🤣
I actually came on this repo to see if the H5177 was supported, got distracted by this issue 🤣
So glad you did, you solved the problem!
Describe The Bug: Plugin fails after latest updates of Node.JS and NPM
Core error is:
To Reproduce: Restart Homebridge and see the log
Expected behavior: Plugin used to work.
Logs:
Plugin Config:
Screenshots:
Environment: