macnow / homebridge-platform-orvibo

Orvibo Smart Socket plugin for Homebridge
17 stars 14 forks source link

Unable to Install on home bridge HOOBS #13

Open TMaskell opened 4 years ago

TMaskell commented 4 years ago

I am unable to install this plugin on HOOBS. Please see the log from my home bridge below. Running HOOBS 3.1.20

sleep@3.0.1 install /home/hoobs/.hoobs/node_modules/sleep

node-gyp rebuild make: Entering directory '/home/hoobs/.hoobs/node_modules/sleep/build' CXX(target) Release/obj.target/node_sleep/sleep.o In file included from ../sleep.cc:2: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ ../sleep.cc: At global scope: ../sleep.cc:6:11: error: ‘v8::Handle’ has not been declared using v8::Handle; ^~ ../sleep.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Sleep(Nan::NAN_METHOD_ARGS_TYPE)’: ../sleep.cc:42:30: error: no matching function for call to ‘v8::Value::Uint32Value()’ sleep(info[0]->Uint32Value()); ^ In file included from /home/hoobs/.cache/node-gyp/12.14.1/include/node/node.h:63, from ../../nan/nan.h:54, from ../sleep.cc:2: /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:2611:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:2611:41: note: candidate expects 1 argument, 0 provided ../sleep.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE USleep(Nan::NAN_METHOD_ARGS_TYPE)’: ../sleep.cc:54:31: error: no matching function for call to ‘v8::Value::Uint32Value()’ usleep(info[0]->Uint32Value()); ^ In file included from /home/hoobs/.cache/node-gyp/12.14.1/include/node/node.h:63, from ../../nan/nan.h:54, from ../sleep.cc:2: /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:2611:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:2611:41: note: candidate expects 1 argument, 0 provided ../sleep.cc: In function ‘void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: ../sleep.cc:62:52: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ Nan::New(Sleep)->GetFunction()); ^ In file included from /home/hoobs/.cache/node-gyp/12.14.1/include/node/node.h:63, from ../../nan/nan.h:54, from ../sleep.cc:2: /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:5995:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~ /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:5995:46: note: candidate expects 1 argument, 0 provided ../sleep.cc:64:53: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ Nan::New(USleep)->GetFunction()); ^ In file included from /home/hoobs/.cache/node-gyp/12.14.1/include/node/node.h:63, from ../../nan/nan.h:54, from ../sleep.cc:2: /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:5995:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~ /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:5995:46: note: candidate expects 1 argument, 0 provided In file included from ../../nan/nan.h:54, from ../sleep.cc:2: ../sleep.cc: At global scope: /home/hoobs/.cache/node-gyp/12.14.1/include/node/node.h:560:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /home/hoobs/.cache/node-gyp/12.14.1/include/node/node.h:594:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~ ../sleep.cc:68:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(node_sleep, init) ^~~ In file included from /home/hoobs/.cache/node-gyp/12.14.1/include/node/node.h:63, from ../../nan/nan.h:54, from ../sleep.cc:2: /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: /home/hoobs/.cache/node-gyp/12.14.1/include/node/node_object_wrap.h:84:78: required from here /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:10004:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~ /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: ../../nan/nan_object_wrap.h:65:61: required from here /home/hoobs/.cache/node-gyp/12.14.1/include/node/v8.h:10004:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] make: *** [node_sleep.target.mk:107: Release/obj.target/node_sleep/sleep.o] Error 1 make: Leaving directory '/home/hoobs/.hoobs/node_modules/sleep/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:223:5) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Linux 4.19.75+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/hoobs/.hoobs/node_modules/sleep gyp ERR! node -v v12.14.1 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sleep@3.0.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sleep@3.0.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/hoobs/.npm/_logs/2020-02-12T20_35_09_799Z-debug.log