nachiket-p / node-red-contrib-onesignal Goto Github PK
View Code? Open in Web Editor NEWOneSignal (https://onesignal.com) Node Red Push Notification Node
License: MIT License
OneSignal (https://onesignal.com) Node Red Push Notification Node
License: MIT License
Hi, I got "ONESIGNAL Responce Error" message even though config success App ID nad REST API KEY.
Can you please tell me what is wrong with me ?
Thanks
Seems promising but I got multiple errors for gyp and node-pre-gyp and install failed, 2 times.
Pasting all because errors are at different places and to help others.
npm i node-red-contrib-onesignal
> [email protected] install /home/user/.node-red/node_modules/bcrypt
> node-gyp rebuild
gyp WARN EACCES user "user" does not have permission to access the dev dir "/home/user/.node-gyp/6.10.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
make: Entering directory '/home/user/.node-red/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
In file included from ../../nan/nan.h:184:0,
from ../src/bcrypt_node.cc:1:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’:
../../nan/nan_maybe_43_inl.h:221:58: warning: ‘v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, uint32_t)’ is deprecated: Cloning is not supported. [-Wdeprecated-declarations]
return array->CloneElementAt(GetCurrentContext(), index);
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from /tmp/.node-gyp/6.10.3/include/node/node.h:42,
from ../../nan/nan.h:24,
from ../src/bcrypt_node.cc:1:
/tmp/.node-gyp/6.10.3/include/node/v8.h:3032:36: note: declared here
MaybeLocal<Object> CloneElementAt(Local<Context> context,
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:190,
from ../src/bcrypt_node.cc:1:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’:
../../nan/nan_implementation_12_inl.h:40:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from /tmp/.node-gyp/6.10.3/include/node/node.h:42,
from ../../nan/nan.h:24,
from ../src/bcrypt_node.cc:1:
/tmp/.node-gyp/6.10.3/include/node/v8.h:4008:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
In file included from ../src/bcrypt_node.cc:1:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:592:20: error: variable or field ‘AddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^
../../nan/nan.h:592:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback
^
../../nan/nan.h:593:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^
../../nan/nan.h:598:20: error: variable or field ‘RemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^
../../nan/nan.h:598:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback) {
^
../../nan/nan.h:603:20: error: variable or field ‘AddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^
../../nan/nan.h:603:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback
^
../../nan/nan.h:604:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^
../../nan/nan.h:609:20: error: variable or field ‘RemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^
../../nan/nan.h:609:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback) {
^
../../nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../../nan/nan.h:1939:16: warning: ‘bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
, attribute);
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from /tmp/.node-gyp/6.10.3/include/node/node.h:42,
from ../../nan/nan.h:24,
from ../src/bcrypt_node.cc:1:
/tmp/.node-gyp/6.10.3/include/node/v8.h:2751:22: note: declared here
bool SetAccessor(Local<Name> name,
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
bcrypt_lib.target.mk:96: recipe for target 'Release/obj.target/bcrypt_lib/src/bcrypt_node.o' failed
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
make: Leaving directory '/home/user/.node-red/node_modules/bcrypt/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-72-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/.node-red/node_modules/bcrypt
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
> [email protected] install /home/user/.node-red/node_modules/bufferutil
> node-gyp rebuild
gyp WARN EACCES user "user" does not have permission to access the dev dir "/home/user/.node-gyp/6.10.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
make: Entering directory '/home/user/.node-red/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../../nan/nan.h:184:0,
from ../src/bufferutil.cc:16:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’:
../../nan/nan_maybe_43_inl.h:221:58: warning: ‘v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, uint32_t)’ is deprecated: Cloning is not supported. [-Wdeprecated-declarations]
return array->CloneElementAt(GetCurrentContext(), index);
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from ../src/bufferutil.cc:7:
/tmp/.node-gyp/6.10.3/include/node/v8.h:3032:36: note: declared here
MaybeLocal<Object> CloneElementAt(Local<Context> context,
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:190,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’:
../../nan/nan_implementation_12_inl.h:40:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from ../src/bufferutil.cc:7:
/tmp/.node-gyp/6.10.3/include/node/v8.h:4008:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:592:20: error: variable or field ‘AddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^
../../nan/nan.h:592:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback
^
../../nan/nan.h:593:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^
../../nan/nan.h:598:20: error: variable or field ‘RemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^
../../nan/nan.h:598:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback) {
^
../../nan/nan.h:603:20: error: variable or field ‘AddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^
../../nan/nan.h:603:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback
^
../../nan/nan.h:604:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^
../../nan/nan.h:609:20: error: variable or field ‘RemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^
../../nan/nan.h:609:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback) {
^
../../nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../../nan/nan.h:1939:16: warning: ‘bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
, attribute);
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from ../src/bufferutil.cc:7:
/tmp/.node-gyp/6.10.3/include/node/v8.h:2751:22: note: declared here
bool SetAccessor(Local<Name> name,
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
bufferutil.target.mk:95: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory '/home/user/.node-red/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-72-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/.node-red/node_modules/bufferutil
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
> [email protected] install /home/user/.node-red/node_modules/serialport
> node-pre-gyp install --fallback-to-build
gyp WARN EACCES user "user" does not have permission to access the dev dir "/home/user/.node-gyp/6.10.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
make: Entering directory '/home/user/.node-red/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from ../../nan/nan.h:184:0,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’:
../../nan/nan_maybe_43_inl.h:221:58: warning: ‘v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, uint32_t)’ is deprecated: Cloning is not supported. [-Wdeprecated-declarations]
return array->CloneElementAt(GetCurrentContext(), index);
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from /tmp/.node-gyp/6.10.3/include/node/node.h:42,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:3032:36: note: declared here
MaybeLocal<Object> CloneElementAt(Local<Context> context,
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:190,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’:
../../nan/nan_implementation_12_inl.h:40:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from /tmp/.node-gyp/6.10.3/include/node/node.h:42,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:4008:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
In file included from ../src/serialport.h:5:0,
from ../src/serialport.cpp:3:
../../nan/nan.h: At global scope:
../../nan/nan.h:592:20: error: variable or field ‘AddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^
../../nan/nan.h:592:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback
^
../../nan/nan.h:593:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^
../../nan/nan.h:598:20: error: variable or field ‘RemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^
../../nan/nan.h:598:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback) {
^
../../nan/nan.h:603:20: error: variable or field ‘AddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^
../../nan/nan.h:603:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback
^
../../nan/nan.h:604:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^
../../nan/nan.h:609:20: error: variable or field ‘RemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^
../../nan/nan.h:609:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback) {
^
../../nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../../nan/nan.h:1939:16: warning: ‘bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
, attribute);
^
In file included from /tmp/.node-gyp/6.10.3/include/node/v8.h:25:0,
from /tmp/.node-gyp/6.10.3/include/node/node.h:42,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:2751:22: note: declared here
bool SetAccessor(Local<Name> name,
^
/tmp/.node-gyp/6.10.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:115:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp:116:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->dataBits = Nan::Get(options, Nan::New<v8::String>("dataBits").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp:117:120: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->bufferSize = Nan::Get(options, Nan::New<v8::String>("bufferSize").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Val
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp:119:131: warning: ‘v8::Local<v8::Number> v8::Value::ToNumber() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
pBits = ToStopBitEnum(Nan::Get(options, Nan::New<v8::String>("stopBits").ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberVa
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8166:15: note: declared here
Local<Number> Value::ToNumber() const {
^
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:159:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:180:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp:199:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp:200:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->dataBits = Nan::Get(options, Nan::New<v8::String>("dataBits").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp:201:120: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->bufferSize = Nan::Get(options, Nan::New<v8::String>("bufferSize").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Val
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp:203:131: warning: ‘v8::Local<v8::Number> v8::Value::ToNumber() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
pBits = ToStopBitEnum(Nan::Get(options, Nan::New<v8::String>("stopBits").ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberVa
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8166:15: note: declared here
Local<Number> Value::ToNumber() const {
^
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:242:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:263:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:374:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:493:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:542:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:603:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /tmp/.node-gyp/6.10.3/include/node/node.h:42:0,
from ../../nan/nan.h:24,
from ../src/serialport.h:5,
from ../src/serialport.cpp:3:
/tmp/.node-gyp/6.10.3/include/node/v8.h:8202:14: note: declared here
Local<Int32> Value::ToInt32() const {
^
serialport.target.mk:96: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/home/user/.node-red/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/user/.node-red/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-72-generic
gyp ERR! command "/usr/bin/nodejs" "/home/user/.node-red/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/user/.node-red/node_modules/serialport/build/Release/node-v48-linux-x64/serialport.node" "--module_name=serialport" "--module_path=/home/user/.node-red/node_modules/serialport/build/Release/node-v48-linux-x64"
gyp ERR! cwd /home/user/.node-red/node_modules/serialport
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /home/user/.node-red/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/user/.node-red/node_modules/serialport/build/Release/node-v48-linux-x64/serialport.node --module_name=serialport --module_path=/home/user/.node-red/node_modules/serialport/build/Release/node-v48-linux-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/user/.node-red/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:886:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.0-72-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/user/.node-red/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/user/.node-red/node_modules/serialport
node-pre-gyp ERR! node -v v6.10.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.18
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /home/user/.node-red/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/user/.node-red/node_modules/serialport/build/Release/node-v48-linux-x64/serialport.node --module_name=serialport --module_path=/home/user/.node-red/node_modules/serialport/build/Release/node-v48-linux-x64' (1)
/home/user/.node-red
└── [email protected]
npm WARN enoent ENOENT: no such file or directory, open '/home/user/.node-red/package.json'
npm WARN .node-red No description
npm WARN .node-red No repository field.
npm WARN .node-red No README data
npm WARN .node-red No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/bcrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/serialport):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.