Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

restful-api already dead #21

Open
willy666rumster opened this issue Aug 22, 2021 · 2 comments
Open

restful-api already dead #21

willy666rumster opened this issue Aug 22, 2021 · 2 comments

Comments

@willy666rumster
Copy link

After all instructions, npm i

npm ERR! code 1
npm ERR! path /home/user/shadowsocks-restful-api/node_modules/unix-dgram
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/user/shadowsocks-restful-api/node_modules/unix-dgram/build'
npm ERR!   CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
npm ERR! make: Leaving directory '/home/user/shadowsocks-restful-api/node_modules/unix-dgram/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@12.22.5 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/share/nodejs/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/user/shadowsocks-restful-api/node_modules/unix-dgram/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/share/nodejs/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/include/nodejs/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/usr/include/nodejs',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/share/nodejs/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/usr/include/nodejs/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/user/shadowsocks-restful-api/node_modules/unix-dgram',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../../nan/nan_converters.h:67,
npm ERR!                  from ../../nan/nan.h:202,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
npm ERR!    18 |       val->To ## TYPE(isolate->GetCurrentContext())                            \
npm ERR!       |                                                   ^
npm ERR! ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
npm ERR!    22 | X(Boolean)
npm ERR!       | ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2664:59: note: declared here
npm ERR!  2664 |                 V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
npm ERR!       |                                                           ^~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../../nan/nan_converters.h:67,
npm ERR!                  from ../../nan/nan.h:202,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
npm ERR!    37 |   return val->NAME ## Value(isolate->GetCurrentContext());                     \
npm ERR!       |                                                         ^
npm ERR! ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
npm ERR!    40 | X(bool, Boolean)
npm ERR!       | ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2702:51: note: declared here
npm ERR!  2702 |                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
npm ERR!       |                                                   ^~~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:103:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
npm ERR!   103 |   return scope.Escape(v8::Function::New( isolate
npm ERR!       |                                          ^~~~~~~
npm ERR!       |                                          |
npm ERR!       |                                          v8::Isolate*
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:4276:22: note:   initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’
npm ERR!  4276 |       Local<Context> context, FunctionCallback callback,
npm ERR!       |       ~~~~~~~~~~~~~~~^~~~~~~
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                     ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:5531:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’
npm ERR!  5531 |   static Local<Value> New(Isolate* isolate, Local<String> value);
npm ERR!       |                       ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:5531:23: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                          ^
npm ERR! ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                            ^
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan.h:1034:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!  1034 |       v8::Local<v8::String> string = from->ToString();
npm ERR!       |                                                     ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  2668 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2684:31: note: candidate: ‘v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const’
npm ERR!  2684 |                 Local<String> ToString(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2684 |                 Local<String> ToString(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h:1044:37: error: cannot convert ‘char*’ to ‘v8::Isolate*’
npm ERR!  1044 |         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
npm ERR!       |                                     ^~~~
npm ERR!       |                                     |
npm ERR!       |                                     char*
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2878:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!  2878 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!       |                 ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1818:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!  1818 |     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR!       |                                                                ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
npm ERR!  3499 |                 bool Set(Local<Value> key, Local<Value> value));
npm ERR!       |                      ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1824:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!  1824 |     New(persistentHandle)->Set(key, value);
npm ERR!       |                                          ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
npm ERR!  3499 |                 bool Set(Local<Value> key, Local<Value> value));
npm ERR!       |                      ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1830:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!  1830 |     New(persistentHandle)->Set(index, value);
npm ERR!       |                                            ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3508:22: note: declared here
npm ERR!  3508 |                 bool Set(uint32_t index, Local<Value> value));
npm ERR!       |                      ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
npm ERR! ../../nan/nan.h:1836:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!  1836 |         New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR!       |                                                             ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3553:51: note: declared here
npm ERR!  3553 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
npm ERR!       |                                                   ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
npm ERR! ../../nan/nan.h:1842:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!  1842 |     return scope.Escape(New(persistentHandle)->Get(key));
npm ERR!       |                                                       ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3553:51: note: declared here
npm ERR!  3553 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
npm ERR!       |                                                   ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
npm ERR! ../../nan/nan.h:1847:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!  1847 |     return scope.Escape(New(persistentHandle)->Get(index));
npm ERR!       |                                                         ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3557:51: note: declared here
npm ERR!  3557 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
npm ERR!       |                                                   ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../../nan/nan.h:2167:7: 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]
npm ERR!  2167 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /usr/include/c++/10/cassert:44,
npm ERR!                  from /usr/include/nodejs/src/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
npm ERR! ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!    24 |     assert(persistent().IsNearDeath());
npm ERR!       |                         ^~~~~~~~~~~
npm ERR! In file included from ../../nan/nan.h:2657,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
npm ERR! ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::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]
npm ERR!    67 |     persistent().MarkIndependent();
npm ERR!       |                                  ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:570:22: note: declared here
npm ERR!   570 |       V8_INLINE void MarkIndependent());
npm ERR!       |                      ^~~~~~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! In file included from /usr/include/c++/10/cassert:44,
npm ERR!                  from /usr/include/nodejs/src/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
npm ERR! ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!   124 |     assert(wrap->handle_.IsNearDeath());
npm ERR!       |                          ^~~~~~~~~~~
npm ERR! ../src/unix_dgram.cc: In function ‘void {anonymous}::OnRecv({anonymous}::SocketContext*)’:
npm ERR! ../src/unix_dgram.cc:121:25: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
npm ERR!   121 |                     argv);
npm ERR!       |                         ^
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h:929:46: note: declared here
npm ERR!   929 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                              ^~~~~~~~~~~~
npm ERR! ../src/unix_dgram.cc: In function ‘void {anonymous}::OnWritable({anonymous}::SocketContext*)’:
npm ERR! ../src/unix_dgram.cc:129:28: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
npm ERR!   129 |                     0, NULL);
npm ERR!       |                            ^
npm ERR! In file included from ../src/unix_dgram.cc:5:
npm ERR! ../../nan/nan.h:929:46: note: declared here
npm ERR!   929 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                              ^~~~~~~~~~~~
npm ERR! ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Socket(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix_dgram.cc:189:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   189 |   domain      = info[0]->Int32Value();
npm ERR!       |                                     ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:190:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   190 |   type        = info[1]->Int32Value();
npm ERR!       |                                     ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:191:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   191 |   protocol    = info[2]->Int32Value();
npm ERR!       |                                     ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix_dgram.cc:230:28: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   230 |   fd = info[0]->Int32Value();
npm ERR!       |                            ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:231:33: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
npm ERR!   231 |   String::Utf8Value path(info[1]);
npm ERR!       |                                 ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3135:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
npm ERR!  3135 |     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!       |     ^~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::SendTo(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix_dgram.cc:258:28: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   258 |   fd = info[0]->Int32Value();
npm ERR!       |                            ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:259:27: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!   259 |   buf = info[1]->ToObject();
npm ERR!       |                           ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/unix_dgram.cc:260:33: error: no matching function for call to ‘v8::Value::Uint32Value()’
npm ERR!   260 |   offset = info[2]->Uint32Value();
npm ERR!       |                                 ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2707:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
npm ERR!  2707 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!       |                                         ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2707:41: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:261:33: error: no matching function for call to ‘v8::Value::Uint32Value()’
npm ERR!   261 |   length = info[3]->Uint32Value();
npm ERR!       |                                 ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2707:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
npm ERR!  2707 |   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!       |                                         ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2707:41: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:262:33: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
npm ERR!   262 |   String::Utf8Value path(info[4]);
npm ERR!       |                                 ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3135:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
npm ERR!  3135 |     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!       |     ^~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Send(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix_dgram.cc:302:28: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   302 |   fd = info[0]->Int32Value();
npm ERR!       |                            ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:303:27: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!   303 |   buf = info[1]->ToObject();
npm ERR!       |                           ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix_dgram.cc:340:28: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   340 |   fd = info[0]->Int32Value();
npm ERR!       |                            ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:341:33: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
npm ERR!   341 |   String::Utf8Value path(info[1]);
npm ERR!       |                                 ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3135:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
npm ERR!  3135 |     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!       |     ^~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/unix_dgram.cc:361:28: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!   361 |   fd = info[0]->Int32Value();
npm ERR!       |                            ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc: In function ‘void {anonymous}::Initialize(v8::Local<v8::Object>)’:
npm ERR! ../src/unix_dgram.cc:395:70: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!   395 |   target->Set(Nan::New("AF_UNIX").ToLocalChecked(), Nan::New(AF_UNIX));
npm ERR!       |                                                                      ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
npm ERR!  3499 |                 bool Set(Local<Value> key, Local<Value> value));
npm ERR!       |                      ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/unix_dgram.cc:396:76: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!   396 |   target->Set(Nan::New("SOCK_DGRAM").ToLocalChecked(), Nan::New(SOCK_DGRAM));
npm ERR!       |                                                                            ^
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-internal.h:14,
npm ERR!                  from /usr/include/nodejs/deps/v8/include/v8.h:27,
npm ERR!                  from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:3499:22: note: declared here
npm ERR!  3499 |                 bool Set(Local<Value> key, Local<Value> value));
npm ERR!       |                      ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/unix_dgram.cc:399:63: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   399 |               Nan::New<FunctionTemplate>(Socket)->GetFunction());
npm ERR!       |                                                               ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6126 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:402:61: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   402 |               Nan::New<FunctionTemplate>(Bind)->GetFunction());
npm ERR!       |                                                             ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6126 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:405:63: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   405 |               Nan::New<FunctionTemplate>(SendTo)->GetFunction());
npm ERR!       |                                                               ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6126 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:408:61: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   408 |               Nan::New<FunctionTemplate>(Send)->GetFunction());
npm ERR!       |                                                             ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6126 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:411:64: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   411 |               Nan::New<FunctionTemplate>(Connect)->GetFunction());
npm ERR!       |                                                                ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6126 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/unix_dgram.cc:414:62: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   414 |               Nan::New<FunctionTemplate>(Close)->GetFunction());
npm ERR!       |                                                              ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6126 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8.h:6126:46: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/unix_dgram.cc:5:
npm ERR! ../src/unix_dgram.cc: At global scope:
npm ERR! /usr/include/nodejs/src/node.h:736:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm ERR!   736 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/nodejs/src/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR!   770 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ../src/unix_dgram.cc:420:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!   420 | NODE_MODULE(unix_dgram, Initialize)
npm ERR!       | ^~~~~~~~~~~
npm ERR! make: *** [unix_dgram.target.mk:109: Release/obj.target/unix_dgram/src/unix_dgram.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/share/nodejs/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! gyp ERR! System Linux 5.10.0-8-amd64
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/share/nodejs/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/user/shadowsocks-restful-api/node_modules/unix-dgram
npm ERR! gyp ERR! node -v v12.22.5
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2021-08-22T19_12_13_058Z-debug.log

@shyandsy
Copy link

bow shit for nodejs

@Dyadya-Sasha
Copy link

I have the same error and based on activity observation, I am afraid that the project is dead, indeed. And this is bad news, man(((

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants