robertklep / homebridge-klikaanklikuit

Homebridge plugin for KlikAanKlikUit outlets
15 stars 7 forks source link

Unable to load driver #36

Closed rcuijpers closed 4 years ago

rcuijpers commented 4 years ago

Hi Robert, I've been using your plugin for a year now and I absolutely love it. Today i've updated my raspberry's node version and homebridge gives me an error on the RPI driver build.

[KlikAanKlikUit] Initializing KlikAanKlikUit platform... Nov 23 11:17:37 raspberrypi homebridge[2530]: [11/23/2020, 11:17:37 AM] Error: Unable to load driver 'rpi': The module '/usr/lib/node_modules/homebridge-klikaanklikuit/node_modules/rpio/build/Release/rpio.node' Nov 23 11:17:37 raspberrypi homebridge[2530]: was compiled against a different Node.js version using Nov 23 11:17:37 raspberrypi homebridge[2530]: NODE_MODULE_VERSION 72. This version of Node.js requires Nov 23 11:17:37 raspberrypi homebridge[2530]: NODE_MODULE_VERSION 88. Please try re-compiling or re-installing Nov 23 11:17:37 raspberrypi homebridge[2530]: the module (for instance, usingnpm rebuildornpm install).

Is this something you can help me with or maybe send me on my way with a link or tutorial on how to fix this? Thanks a million!

robertklep commented 4 years ago

You need to reinstall the plugin with the new Node.js version. You can use the installation instructions to reinstall it.