Hallo zusammen,
ich schaffe es leider nicht das Plugin RCSwitch (oder auch andere Plugins) zu installieren.
Es kommt immer folgender Fehler:
Kann mir jemand helfen?
pi@pilight:~ $ npm install -g homebridge-rcswitch
> [email protected] install /usr/local/lib/node_modules/homebridge-rcswitch/node_mo dules/rcswitch
> node-gyp rebuild
make: Verzeichnis „/usr/local/lib/node_modules/homebridge-rcswitch/node_modules/ rcswitch/build“ wird betreten
CXX(target) Release/obj.target/rcswitch/src/rcswitch.o
CXX(target) Release/obj.target/rcswitch/src/RCSwitchNode.o
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp: In static member function ‘static void RCSwitchNode::Sw itchOp(const Nan::FunctionCallbackInfo<v8::Value>&, bool)’:
../src/RCSwitchNode.cpp:45:35: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp2(group->Int32Value(), swtch->Int32Value());
^
../src/RCSwitchNode.h:19:69: note: in definition of macro ‘switchOp2’
#define switchOp2(p1, p2) { if(switchOn) thiz->rcswitch.switchOn((p1), (p2)); else thiz->rcswitch.switchOff((p1), (p2)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:45:56: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp2(group->Int32Value(), swtch->Int32Value());
^
../src/RCSwitchNode.h:19:75: note: in definition of macro ‘switchOp2’
ine switchOp2(p1, p2) { if(switchOn) thiz->rcswitch.switchOn((p1), (p2)); else thiz->rcswitch.switchOff((p1), (p2)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:45:35: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp2(group->Int32Value(), swtch->Int32Value());
^
../src/RCSwitchNode.h:19:112: note: in definition of macro ‘switchOp2’
thiz->rcswitch.switchOn((p1), (p2)); else thiz->rcswitch.switchOff((p1), (p2)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:45:56: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp2(group->Int32Value(), swtch->Int32Value());
^
../src/RCSwitchNode.h:19:118: note: in definition of macro ‘switchOp2’
iz->rcswitch.switchOn((p1), (p2)); else thiz->rcswitch.switchOff((p1), (p2)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:51:46: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp2(*sGroup, swtch->Int32Value());
^
../src/RCSwitchNode.h:19:75: note: in definition of macro ‘switchOp2’
ine switchOp2(p1, p2) { if(switchOn) thiz->rcswitch.switchOn((p1), (p2)); else thiz->rcswitch.switchOff((p1), (p2)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:51:46: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp2(*sGroup, swtch->Int32Value());
^
../src/RCSwitchNode.h:19:118: note: in definition of macro ‘switchOp2’
iz->rcswitch.switchOn((p1), (p2)); else thiz->rcswitch.switchOff((p1), (p2)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:64:48: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp3(*(*v8str), group->Int32Value(), devce->Int32Value());
^
../src/RCSwitchNode.h:20:79: note: in definition of macro ‘switchOp3’
switchOp3(p1, p2, p3) { if(switchOn) thiz->rcswitch.switchOn((p1), (p2), (p3)); else thiz->rcswitch.switchOff((p1), (p2), (p3)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:64:69: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp3(*(*v8str), group->Int32Value(), devce->Int32Value());
^
../src/RCSwitchNode.h:20:85: note: in definition of macro ‘switchOp3’
Op3(p1, p2, p3) { if(switchOn) thiz->rcswitch.switchOn((p1), (p2), (p3)); else thiz->rcswitch.switchOff((p1), (p2), (p3)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:64:48: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp3(*(*v8str), group->Int32Value(), devce->Int32Value());
^
../src/RCSwitchNode.h:20:128: note: in definition of macro ‘switchOp3’
ch.switchOn((p1), (p2), (p3)); else thiz->rcswitch.switchOff((p1), (p2), (p3)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/RCSwitchNode.cpp:1:0:
../src/RCSwitchNode.cpp:64:69: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
switchOp3(*(*v8str), group->Int32Value(), devce->Int32Value());
^
../src/RCSwitchNode.h:20:134: note: in definition of macro ‘switchOp3’
.switchOn((p1), (p2), (p3)); else thiz->rcswitch.switchOff((p1), (p2), (p3)); }
^~
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/RCSwitchNode.cpp: In static member function ‘static void RCSwitchNode::Ne w(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/RCSwitchNode.cpp:82:59: error: no matching function for call to ‘v8::Func tion::NewInstance(const int&, v8::Local<v8::Value> [0])’
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
In file included from /home/pi/.node-gyp/10.16.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:3993:44: note: candidate: v8::Maybe Local<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Loc al<v8::Value>*) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/pi/.node-gyp/10.16.0/include/node/v8.h:3993:44: note: candidate expects 3 arguments, 2 provided
/home/pi/.node-gyp/10.16.0/include/node/v8.h:3996:44: note: candidate: v8::Maybe Local<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/pi/.node-gyp/10.16.0/include/node/v8.h:3996:44: note: candidate expects 1 argument, 2 provided
../src/RCSwitchNode.cpp: In static member function ‘static void RCSwitchNode::En ableTransmit(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/RCSwitchNode.cpp:104:52: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->rcswitch.enableTransmit(pinNr->Int32Value());
^
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/RCSwitchNode.cpp: In static member function ‘static void RCSwitchNode::Se tProtocol(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallba ckInfo<v8::Value>&)’:
../src/RCSwitchNode.cpp:133:49: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->rcswitch.setProtocol(value->Int32Value());
^
In file included from /home/pi/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/RCSwitchNode.h:4,
from ../src/RCSwitchNode.cpp:1:
/home/pi/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
rcswitch.target.mk:103: die Regel für Ziel „Release/obj.target/rcswitch/src/RCSw itchNode.o“ scheiterte
make: *** [Release/obj.target/rcswitch/src/RCSwitchNode.o] Fehler 1
make: Verzeichnis „/usr/local/lib/node_modules/homebridge-rcswitch/node_modules/ rcswitch/build“ wird verlassen
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:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:248:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_mod ules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-rcswitch/node_modules/rcswit ch
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-08-30T07_55_22_329Z-debug.log