robertklep / homebridge-klikaanklikuit

Homebridge plugin for KlikAanKlikUit outlets
15 stars 7 forks source link

Nodejs 8 & klikaanklikuit #27

Closed hugo-leij closed 6 years ago

hugo-leij commented 6 years ago

Hi,

I run into the following error: /usr/local/lib/node_modules/homebridge-klikaanklikuit/index.js:26 throw Error(Unable to load driver '${ driver.type }': ${ e.message }); ^ This problem has also been reported in the following tickets: https://github.com/robertklep/homebridge-klikaanklikuit/issues/25 , https://github.com/robertklep/homebridge-klikaanklikuit/issues/22

In the meantime I have done a few new installations (several times) and with NodeJS 4 everything works. The problem is that I need NodeJS 8 for my Nest.

hugo-leij commented 6 years ago

Fixed the issue :-)

pi@raspberrypi:~ $ cd /usr/local/lib/node_modules/homebridge-klikaanklikuit/node_modules/kaku-rpi/ pi@raspberrypi:/usr/local/lib/node_modules/homebridge-klikaanklikuit/node_modules/kaku-rpi $ sudo npm rebuild --unsafe-perm

robertklep commented 6 years ago

Cool, thanks for letting me know how to fix this, you're not the only one running into this problem so now I can share a solution ;)