KraigM / homebridge-gpio-garagedoor

RPi GPIO based Garage Door plugin for Homebridge
22 stars 11 forks source link

onoff/epoll compile fails with Node 10 #19

Open jdtsmith opened 6 years ago

jdtsmith commented 6 years ago

The fixed version of onoff specified by this module, and hence epoll, includes a nan module that uses a deprecated v8::Object::ForceSet method, which breaks install:

../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
bluephlame commented 5 years ago

I got this working with some changes see pull request #22

simonrb2000 commented 4 years ago

Sorry for being dumb; how can I install the fixed version if it hasn't been merged? I had to upgrade node to get another plugin working and now this one wont install. Eeeek Please help :) Thank you

simonrb2000 commented 4 years ago

npm i @bluephlame/homebridge-gpio-garagedoor

simonrb2000 commented 4 years ago

Tried above and this:-

npm I -g @bluephlame/homebridge-gpio-garagedoor

Yet I still get Error: The requested accessory 'GPIOGarageDoor' was not registered by any plugin.

Any ideas?

simonrb2000 commented 4 years ago

pi@raspberrypi:~ $ npm install -g @bluephlame/homebridge-gpio-garagedoor

But its not in the in the usr/lib/node_modules for some reason?

simonrb2000 commented 4 years ago

I can not install this at all. It adds it to the Nodes_Modules folder under @bluephlame folder. Then when I run homebridge it states the plugin isn't registered anywhere. Any help would be much appreciated.

At a loss of where to go now. I did download to Nodesjs 8x just to get it to install

daniel2029 commented 4 years ago

pi@raspberrypi:~ $ npm install -g @bluephlame/homebridge-gpio-garagedoor

  • @bluephlame/homebridge-gpio-garagedoor@0.2.3 updated 1 package in 1.16s pi@raspberrypi:~ $

But its not in the in the usr/lib/node_modules for some reason?

thank you so much @bluephlame it solved my issue