return New(handle)->Get(kCallbackIndex)->IsUndefined(); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3461:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In member function 'v8::Local Nan::Callback::Call_(v8::Isolate*, v8::Local, int, v8::Local*) const': ../../nan/nan.h:1447:27: warning: 'v8::Local v8::Object::Get(uint32_t)' is deprecated: Use maybe version [-Wdeprecated-declarations] Get(kCallbackIndex).As(); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3461:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h:1463:5: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/node.h:174:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~~~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h:1463:5: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/node.h:174:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~~~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local&)': ../../nan/nan.h:1518:64: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(New(key).ToLocalChecked(), value); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const v8::Local&, const v8::Local&)': ../../nan/nan.h:1524:42: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(key, value); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local&)': ../../nan/nan.h:1530:44: warning: 'bool v8::Object::Set(uint32_t, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(index, value); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3412:22: note: declared here bool Set(uint32_t index, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In member function 'v8::Local Nan::AsyncWorker::GetFromPersistent(const char*) const': ../../nan/nan.h:1536:61: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Get(New(key).ToLocalChecked())); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3457:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In member function 'v8::Local Nan::AsyncWorker::GetFromPersistent(const v8::Local&) const': ../../nan/nan.h:1542:55: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] return scope.Escape(New(persistentHandle)->Get(key)); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3457:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In member function 'v8::Local Nan::AsyncWorker::GetFromPersistent(uint32_t) const': ../../nan/nan.h:1547:57: warning: 'v8::Local v8::Object::Get(uint32_t)' is deprecated: Use maybe version [-Wdeprecated-declarations] return scope.Escape(New(persistentHandle)->Get(index)); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3461:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/nfc.cc:6: ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)': ../../nan/nan.h:1706: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) ^ In file included from /usr/include/c++/8/cassert:44, from /var/www/.cache/node-gyp/12.14.0/include/node/node_object_wrap.h:26, from ../../nan/nan.h:49, from ../src/nfc.cc:6: ../../nan/nan_object_wrap.h: In destructor 'virtual Nan::ObjectWrap::~ObjectWrap()': ../../nan/nan_object_wrap.h:24:25: error: 'class Nan::Persistent' has no member named 'IsNearDeath' assert(persistent().IsNearDeath()); ^~~~~~~~~~~ In file included from ../../nan/nan.h:2192, from ../src/nfc.cc:6: ../../nan/nan_object_wrap.h: In member function 'void Nan::ObjectWrap::MakeWeak()': ../../nan/nan_object_wrap.h:67:34: warning: 'void v8::PersistentBase::MarkIndependent() [with T = v8::Object]' is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations] persistent().MarkIndependent(); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:567:22: note: declared here V8_INLINE void MarkIndependent()); ^~~~~~~~~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from /usr/include/c++/8/cassert:44, from /var/www/.cache/node-gyp/12.14.0/include/node/node_object_wrap.h:26, from ../../nan/nan.h:49, from ../src/nfc.cc:6: ../../nan/nan_object_wrap.h: In static member function 'static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&)': ../../nan/nan_object_wrap.h:124:26: error: 'class Nan::Persistent' has no member named 'IsNearDeath' assert(wrap->handle_.IsNearDeath()); ^~~~~~~~~~~ ../src/nfc.cc: In member function 'void {anonymous}::NFCCard::AddToNodeObject(v8::Local)': ../src/nfc.cc:85:112: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(deviceID) object->Set(Nan::New("deviceID").ToLocalChecked(), Nan::New(deviceID).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:86:100: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(name) object->Set(Nan::New("name").ToLocalChecked(), Nan::New(name).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:87:97: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(uid) object->Set(Nan::New("uid").ToLocalChecked(), Nan::New(uid).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:88:90: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(type) object->Set(Nan::New("type").ToLocalChecked(), Nan::New(type)); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:89:97: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(tag) object->Set(Nan::New("tag").ToLocalChecked(), Nan::New(tag).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:90:88: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(error) object->Set(Nan::New("error").ToLocalChecked(), Nan::Error(error)); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:91:117: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(data) object->Set(Nan::New("data").ToLocalChecked(), Nan::NewBuffer(data, data_size).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:92:105: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] if(offset) object->Set(Nan::New("offset").ToLocalChecked(), Nan::New((int32_t)offset)); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::NFC::Start(Nan::NAN_METHOD_ARGS_TYPE)': ../src/nfc.cc:413:56: error: no matching function for call to 'v8::Value::ToString()' String::Utf8Value device(info[0]->ToString()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:2572:44: note: candidate: 'v8::MaybeLocal v8::Value::ToString(v8::Local) const' V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:2572:44: note: candidate expects 1 argument, 0 provided In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:2588:31: note: candidate: 'v8::Local v8::Value::ToString(v8::Isolate*) const' Local ToString(Isolate* isolate) const); ^~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:2588:31: note: candidate expects 1 argument, 0 provided Local ToString(Isolate* isolate) const); ^~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:446:124: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(Nan::New("deviceID").ToLocalChecked(), Nan::New(nfc_device_get_connstring(baton->pnd)).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:447:114: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(Nan::New("name").ToLocalChecked(), Nan::New(nfc_device_get_name(baton->pnd)).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Scan(Nan::NAN_METHOD_ARGS_TYPE)': ../src/nfc.cc:468:110: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] entry->Set(Nan::New("name").ToLocalChecked(), Nan::New(nfc_device_get_name(pnd)).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:472:94: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] entry->Set(Nan::New("info").ToLocalChecked(), Nan::New(info).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:475:92: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] entry->Set(Nan::New("info").ToLocalChecked(), Nan::New("").ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:477:89: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(Nan::New(nfc_device_get_connstring(pnd)).ToLocalChecked(), entry); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Version(Nan::NAN_METHOD_ARGS_TYPE)': ../src/nfc.cc:495:91: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(Nan::New("name").ToLocalChecked(), Nan::New("libnfc").ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc:496:99: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(Nan::New("version").ToLocalChecked(), Nan::New(nfc_version()).ToLocalChecked()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/v8-internal.h:14, from /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:25, from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:3403:22: note: declared here bool Set(Local key, Local value)); ^~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/nfc.cc: In function 'void {anonymous}::init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)': ../src/nfc.cc:512:77: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()' Nan::Set(target, Nan::New("NFC").ToLocalChecked(), tpl->GetFunction()); ^ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:5995:46: note: candidate: 'v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)' V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /var/www/.cache/node-gyp/12.14.0/include/node/v8.h:5995:46: note: candidate expects 1 argument, 0 provided In file included from ../../nan/nan.h:47, from ../src/nfc.cc:6: ../src/nfc.cc: At global scope: /var/www/.cache/node-gyp/12.14.0/include/node/node.h:566: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), \ ^ /var/www/.cache/node-gyp/12.14.0/include/node/node.h:600:3: note: in expansion of macro 'NODE_MODULE_X' NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~ ../src/nfc.cc:518:1: note: in expansion of macro 'NODE_MODULE' NODE_MODULE(nfc, init) ^~~~~~~~~~~ In file included from /var/www/.cache/node-gyp/12.14.0/include/node/node.h:63, from ../../nan/nan.h:47, from ../src/nfc.cc:6: /var/www/.cache/node-gyp/12.14.0/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&)]': /var/www/.cache/node-gyp/12.14.0/include/node/node_object_wrap.h:84:78: required from here /var/www/.cache/node-gyp/12.14.0/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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/www/.cache/node-gyp/12.14.0/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:66:61: required from here /var/www/.cache/node-gyp/12.14.0/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: *** [nfc.target.mk:111: Release/obj.target/nfc/src/nfc.o] Error 1 make: Leaving directory '/var/www/html/plugins/nfc/resources/node_modules/nfc/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:194:23) gyp ERR! stack at ChildProcess.emit (events.js:210:5) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Linux 4.19.75-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "clean" "configure" "rebuild" gyp ERR! cwd /var/www/html/plugins/nfc/resources/node_modules/nfc gyp ERR! node -v v12.14.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! nfc@0.3.3 install: `node-gyp clean configure rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nfc@0.3.3 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! /var/www/.npm/_logs/2020-02-21T17_56_59_306Z-debug.log Fin de l'installation