shadowsocks / shadowsocks-restful-api Goto Github PK
View Code? Open in Web Editor NEWSecure, reliable, standard restful api for managing shadowsocks-libev
Secure, reliable, standard restful api for managing shadowsocks-libev
hi:
I use ubuntu 16.04, install shadowsocks-libev and shadowsocks-restful-api now.
when use login api and others it works. but then I use get traffic for all ports api, the server return: (i have create a port)
HTTP/1.1 500 Internal Server Error
X-Powered-By: Express
Content-Type: application/json; charset=utf-8
Content-Length: 12
ETag: W/"c-3Rk1bge0s6VuJbi+S2m2iU0UGdY"
Date: Thu, 09 Aug 2018 01:16:51 GMT
Connection: keep-alive
I am using firewalld. does this relevant?
I hope support encrypt_method
Above the shadowsocks-libev is a field that can support all configurations, add it in the json content.
shadowsocks-restful-api above I tried to add fields on the new interface without any reaction, I hope to get support,
thank you
Hi,
Any plan to release unminified source code?
Thanks.
Thanks for you great work :). How to get traffic for single port instated of calling for all?
Login is fine, ping pong test is fine too, but when I tried to add new node, it shows 500 error
HTTP/1.1 500 Internal Server Error
X-Powered-By: Express
Content-Type: application/json; charset=utf-8
Content-Length: 12
ETag: W/"c-3Rk1bge0s6VuJbi+S2m2iU0UGdY"
Date: Tue, 17 Sep 2019 10:03:35 GMT
Connection: keep-alive
Keep shadowsocks-libev and shadowsocks-restful-api runing full time.
apt-get install python-dev
Python: ImportError: No module named compiler.ast
for
> [email protected] install /root/shadowsocks-restful-api/node_modules/unix-dgram
> node-gyp rebuild
Traceback (most recent call last):
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module>
import gyp
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>
import gyp.input
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>
from compiler.ast import Const
ImportError: No module named compiler.ast
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.4.0-109-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/shadowsocks-restful-api/node_modules/unix-dgram
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
apt-get install make g++
for
> [email protected] install /root/shadowsocks-restful-api/node_modules/unix-dgram
> node-gyp rebuild
make: Entering directory '/root/shadowsocks-restful-api/node_modules/unix-dgram/build'
CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
make: g++: Command not found
unix_dgram.target.mk:93: recipe for target 'Release/obj.target/unix_dgram/src/unix_dgram.o' failed
make: *** [Release/obj.target/unix_dgram/src/unix_dgram.o] Error 127
make: Leaving directory '/root/shadowsocks-restful-api/node_modules/unix-dgram/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:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.4.0-109-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/shadowsocks-restful-api/node_modules/unix-dgram
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
can shadowsocks-restful-api work with shadowsocks-python?
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 [email protected]
npm ERR! gyp info using [email protected] | 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
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.