sipster icon indicating copy to clipboard operation
sipster copied to clipboard

build issue on node V12.22.12 / NPM 7.5.2

Open MohammadAliNekouie opened this issue 2 years ago • 0 comments

Error while try to install with this command : npm install sipster

npm ERR! ../src/SIPSTERAccount.h:38:26: error: ‘Handle’ has not been declared
npm ERR!    38 |   static void Initialize(Handle<Object> target);
npm ERR!       |                          ^~~~~~
npm ERR! ../src/SIPSTERAccount.h:38:32: error: expected ‘,’ or ‘...’ before ‘<’ token
npm ERR!    38 |   static void Initialize(Handle<Object> target);
npm ERR!       |                                ^
npm ERR! In file included from ../src/common.h:12,
npm ERR!                  from ../src/binding.cc:8:
npm ERR! ../src/SIPSTERCall.h:41:26: error: ‘Handle’ has not been declared
npm ERR!    41 |   static void Initialize(Handle<Object> target);
npm ERR!       |                          ^~~~~~
npm ERR! ../src/binding.cc: In function ‘void dumb_cb(uv_async_t*)’:
npm ERR! ../src/binding.cc:151:35: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!   151 |                     ->GetFunction()
npm ERR!       |                                   ^
npm ERR! In file included from /usr/include/nodejs/src/node.h:67,
npm ERR!                  from ../src/binding.cc:1:
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/binding.cc:158:54: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR!   158 |         call->emit->Call(acct->handle(), 3, emit_argv);
npm ERR!       |                                                      ^
npm ERR! In file included from ../src/binding.cc:2:
npm ERR! ../../nan/nan.h:1724:3: note: declared here
npm ERR!  1724 |   Call(v8::Local<v8::Object> target
npm ERR!       |   ^~~~

MohammadAliNekouie avatar Nov 23 '22 08:11 MohammadAliNekouie