cryptonote-xmr-pool icon indicating copy to clipboard operation
cryptonote-xmr-pool copied to clipboard

SyntaxError: Use of const in strict mode.

Open mengxin239 opened this issue 3 years ago • 0 comments

I run node init.js, It show that const client_1 = require("@node-redis/client"); ^^^^^ SyntaxError: Use of const in strict mode. at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/mydesk/pool/init.js:5:13) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) and while I'm running npm update,It show that `npm http GET http://registry.npmjs.org/base58-native npm http GET http://registry.npmjs.org/bignum npm http GET http://registry.npmjs.org/dateformat npm http GET http://registry.npmjs.org/async npm http GET http://registry.npmjs.org/cli-color npm http GET http://registry.npmjs.org/redis npm http 304 http://registry.npmjs.org/base58-native npm http 304 http://registry.npmjs.org/async npm http 304 http://registry.npmjs.org/bignum npm http 304 http://registry.npmjs.org/cli-color npm http 304 http://registry.npmjs.org/dateformat npm http 304 http://registry.npmjs.org/redis npm http GET http://registry.npmjs.org/%40node-redis/client npm http GET http://registry.npmjs.org/%40node-redis/search npm http GET http://registry.npmjs.org/%40node-redis/json npm http 304 http://registry.npmjs.org/%40node-redis/search npm http 304 http://registry.npmjs.org/%40node-redis/json npm http 304 http://registry.npmjs.org/%40node-redis/client npm http GET http://registry.npmjs.org/@node-redis/search/-/search-1.0.0.tgz npm http GET http://registry.npmjs.org/@node-redis/json/-/json-1.0.0.tgz npm http GET http://registry.npmjs.org/@node-redis/client/-/client-1.0.0.tgz npm http 200 http://registry.npmjs.org/@node-redis/json/-/json-1.0.0.tgz npm http 200 http://registry.npmjs.org/@node-redis/search/-/search-1.0.0.tgz npm http 200 http://registry.npmjs.org/@node-redis/client/-/client-1.0.0.tgz npm ERR! git clone git://github.com/kirichenko/node-cryptonote-util.git Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-kirichenko-node-cryptonote-util-git-e955a194'... npm ERR! git clone git://github.com/kirichenko/node-cryptonote-util.git fatal: remote error: npm ERR! git clone git://github.com/kirichenko/node-cryptonote-util.git Repository not found. npm http GET http://registry.npmjs.org/base58-native/0.1.4 npm http GET http://registry.npmjs.org/bignum/0.13.1 npm http GET http://registry.npmjs.org/cli-color/2.0.1 npm http 200 http://registry.npmjs.org/cli-color/2.0.1 npm http GET http://registry.npmjs.org/cli-color/-/cli-color-2.0.1.tgz npm http 200 http://registry.npmjs.org/bignum/0.13.1 npm http 200 http://registry.npmjs.org/base58-native/0.1.4 npm http GET http://registry.npmjs.org/bignum/-/bignum-0.13.1.tgz npm http GET http://registry.npmjs.org/base58-native/-/base58-native-0.1.4.tgz npm http 200 http://registry.npmjs.org/cli-color/-/cli-color-2.0.1.tgz npm http 200 http://registry.npmjs.org/bignum/-/bignum-0.13.1.tgz npm http 200 http://registry.npmjs.org/base58-native/-/base58-native-0.1.4.tgz npm http GET http://registry.npmjs.org/safe-buffer npm http GET http://registry.npmjs.org/bindings npm http GET http://registry.npmjs.org/nan npm http GET http://registry.npmjs.org/bignum npm http GET http://registry.npmjs.org/d npm http GET http://registry.npmjs.org/es6-iterator npm http GET http://registry.npmjs.org/es5-ext npm http GET http://registry.npmjs.org/memoizee npm http GET http://registry.npmjs.org/timers-ext npm http 304 http://registry.npmjs.org/safe-buffer npm http 304 http://registry.npmjs.org/bindings npm http 304 http://registry.npmjs.org/nan npm http 304 http://registry.npmjs.org/bignum npm http 304 http://registry.npmjs.org/timers-ext npm http 304 http://registry.npmjs.org/es6-iterator npm http 304 http://registry.npmjs.org/memoizee npm http 304 http://registry.npmjs.org/es5-ext npm http 304 http://registry.npmjs.org/d npm http GET http://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz npm http GET http://registry.npmjs.org/file-uri-to-path/1.0.0 npm http 200 http://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz npm http 200 http://registry.npmjs.org/file-uri-to-path/1.0.0 npm http GET http://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz npm http 200 http://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz

[email protected] install /mydesk/pool/node_modules/bignum node-gyp rebuild

[email protected] install /mydesk/pool/node_modules/base58-native/node_modules/bignum node-gyp rebuild

make: Entering directory /mydesk/pool/node_modules/bignum/build' CXX(target) Release/obj.target/bignum/bignum.o make: Entering directory /mydesk/pool/node_modules/base58-native/node_modules/bignum/build' CXX(target) Release/obj.target/bignum/bignum.o ../bignum.cc: In static member function ‘static void BigNum::Initialize(v8::Localv8::Object)’: ../bignum.cc:295:84: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::Set(target, Nan::New("BigNum").ToLocalChecked(), tmpl->GetFunction(isolate->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:389:90: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(), len, newArgs); ^ ../bignum.cc:404:54: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Local<Context> currentContext = info.GetIsolate()->GetCurrentContext(); ^ ../bignum.cc:417:55: error: no matching function for call to ‘v8::Function::Call(v8::Localv8::Context&, v8::Localv8::Object&, int, v8::Localv8::Value&)’ Call(currentContext, ctx, info.Length(), newArgs).ToLocal(&obj); ^ ../bignum.cc:417:55: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../node_modules/nan/nan.h:58, from ../bignum.cc:8: /usr/include/nodejs/deps/v8/include/v8.h:1774:25: note: v8::Localv8::Value v8::Function::Call(v8::Handlev8::Object, int, v8::Handlev8::Value) V8EXPORT Local<Value> Call(Handle<Object> recv, ^ /usr/include/nodejs/deps/v8/include/v8.h:1774:25: note: candidate expects 3 arguments, 4 provided ../bignum.cc:420:10: error: in argument to unary ! if (!ok) { ^ ../bignum.cc:425:62: error: no matching function for call to ‘v8::Value::ToObject(v8::Localv8::Context&)’ Nan::Utf8String str(Nan::Get(obj->ToObject(currentContext).ToLocalChecked(), Nan::New("num").ToLocalChecked()).ToLocalChecked()->ToString(currentContext).ToLocalChecked()); ^ ../bignum.cc:425:62: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../node_modules/nan/nan.h:58, from ../bignum.cc:8: /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: v8::Localv8::Object v8::Value::ToObject() const V8EXPORT Local<Object> ToObject() const; ^ /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: candidate expects 0 arguments, 1 provided ../bignum.cc:426:66: error: no matching function for call to ‘v8::Value::ToObject(v8::Localv8::Context&)’ base = Nan::To<int64_t>(Nan::Get(obj->ToObject(currentContext).ToLocalChecked(), Nan::New("base").ToLocalChecked()).ToLocalChecked()).FromJust(); ^ ../bignum.cc:426:66: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../node_modules/nan/nan.h:58, from ../bignum.cc:8: /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: v8::Localv8::Object v8::Value::ToObject() const V8EXPORT Local<Object> ToObject() const; ^ /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: candidate expects 0 arguments, 1 provided ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Badd(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:469:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:474:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bsub(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:483:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:487:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bmul(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:497:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:501:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bdiv(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:511:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bi = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:515:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Uadd(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:533:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Usub(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:551:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umul(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:570:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Udiv(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:589:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umul_2exp(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:602:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Udiv_2exp(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:615:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Babs(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:627:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bneg(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:639:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bmod(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:649:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:653:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umod(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:672:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bpowm(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:682:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn1 = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:683:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn2 = Nan::ObjectWrap::Unwrap<BigNum>(info[1]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:687:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Upowm(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:698:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[1]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:704:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Upow(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:720:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Brand0(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:733:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Uprime0(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:747:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bcompare(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:775:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Scompare(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:51:55: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ int64_t VAR = info[I]->ToInteger(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()->Value(); ^ ../bignum.cc:784:3: note: in expansion of macro ‘REQ_INT64_ARG’ REQ_INT64_ARG(0, x); ^ ../bignum.cc: In static member function ‘static v8::Localv8::Value BigNum::Bop(Nan::NAN_METHOD_ARGS_TYPE, int)’: ../bignum.cc:905:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:1006:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Binvertm(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:1034:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:1038:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bgcd(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:1068:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum bi = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:1073:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bjacobi(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:1082:87: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum bn_n = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc: In static member function ‘static void BigNum::Initialize(v8::Localv8::Object)’: ../bignum.cc:295:84: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::Set(target, Nan::New("BigNum").ToLocalChecked(), tmpl->GetFunction(isolate->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:389:90: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(), len, newArgs); ^ ../bignum.cc:404:54: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Local<Context> currentContext = info.GetIsolate()->GetCurrentContext(); ^ ../bignum.cc:417:55: error: no matching function for call to ‘v8::Function::Call(v8::Localv8::Context&, v8::Localv8::Object&, int, v8::Localv8::Value&)’ Call(currentContext, ctx, info.Length(), newArgs).ToLocal(&obj); ^ ../bignum.cc:417:55: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../node_modules/nan/nan.h:58, from ../bignum.cc:8: /usr/include/nodejs/deps/v8/include/v8.h:1774:25: note: v8::Localv8::Value v8::Function::Call(v8::Handlev8::Object, int, v8::Handlev8::Value
) V8EXPORT Local<Value> Call(Handle<Object> recv, ^ /usr/include/nodejs/deps/v8/include/v8.h:1774:25: note: candidate expects 3 arguments, 4 provided ../bignum.cc:420:10: error: in argument to unary ! if (!ok) { ^ ../bignum.cc:425:62: error: no matching function for call to ‘v8::Value::ToObject(v8::Localv8::Context&)’ Nan::Utf8String str(Nan::Get(obj->ToObject(currentContext).ToLocalChecked(), Nan::New("num").ToLocalChecked()).ToLocalChecked()->ToString(currentContext).ToLocalChecked()); ^ ../bignum.cc:425:62: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../node_modules/nan/nan.h:58, from ../bignum.cc:8: /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: v8::Localv8::Object v8::Value::ToObject() const V8EXPORT Local<Object> ToObject() const; ^ /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: candidate expects 0 arguments, 1 provided ../bignum.cc:426:66: error: no matching function for call to ‘v8::Value::ToObject(v8::Localv8::Context&)’ base = Nan::To<int64_t>(Nan::Get(obj->ToObject(currentContext).ToLocalChecked(), Nan::New("base").ToLocalChecked()).ToLocalChecked()).FromJust(); ^ ../bignum.cc:426:66: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../node_modules/nan/nan.h:58, from ../bignum.cc:8: /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: v8::Localv8::Object v8::Value::ToObject() const V8EXPORT Local<Object> ToObject() const; ^ /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: candidate expects 0 arguments, 1 provided ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Badd(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:469:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:474:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bsub(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:483:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:487:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bmul(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:497:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:501:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bdiv(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:511:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bi = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:515:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Uadd(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:533:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Usub(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:551:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umul(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:570:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Udiv(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:589:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umul_2exp(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:602:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Udiv_2exp(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:615:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Babs(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:627:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bneg(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:639:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bmod(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:649:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:653:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umod(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:672:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bpowm(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:682:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn1 = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:683:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn2 = Nan::ObjectWrap::Unwrap<BigNum>(info[1]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:687:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Upowm(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:698:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[1]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:704:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Upow(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:720:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Brand0(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:733:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Uprime0(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:747:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bcompare(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:775:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Scompare(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:51:55: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ int64_t VAR = info[I]->ToInteger(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()->Value(); ^ ../bignum.cc:784:3: note: in expansion of macro ‘REQ_INT64_ARG’ REQ_INT64_ARG(0, x); ^ ../bignum.cc: In static member function ‘static v8::Localv8::Value BigNum::Bop(Nan::NAN_METHOD_ARGS_TYPE, int)’: ../bignum.cc:905:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:1006:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Binvertm(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:1034:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:1038:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bgcd(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:1068:85: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bi = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ ../bignum.cc:70:86: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Nan::New<FunctionTemplate>(constructor_template)->GetFunction(info.GetIsolate()->GetCurrentContext()).ToLocalChecked(),
^ ../bignum.cc:1073:3: note: in expansion of macro ‘WRAP_RESULT’ WRAP_RESULT(res, result); ^ ../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bjacobi(Nan::NAN_METHOD_ARGS_TYPE)’: ../bignum.cc:1082:87: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ BigNum *bn_n = Nan::ObjectWrap::Unwrap<BigNum>(info[0]->ToObject(info.GetIsolate()->GetCurrentContext()).ToLocalChecked()); ^ make: *** [Release/obj.target/bignum/bignum.o] Error 1 make: Leaving directory /mydesk/pool/node_modules/bignum/build' gyp ERR! build error gyp ERR! stack Error: make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.13.0-170-generic gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /mydesk/pool/node_modules/bignum gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1 make: *** [Release/obj.target/bignum/bignum.o] Error 1 make: Leaving directory /mydesk/pool/node_modules/base58-native/node_modules/bignum/build' gyp ERR! build error gyp ERR! stack Error: make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.13.0-170-generic gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /mydesk/pool/node_modules/base58-native/node_modules/bignum gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! tar pack Error reading /root/tmp/npm-10804-T7xLI7ij/1638639729757-0.9384058946743608/package npm ERR! addLocalDirectory Could not pack "/root/tmp/npm-10804-T7xLI7ij/1638639729757-0.9384058946743608/package" to "/root/.npm/es5-ext/0.10.53/package.tgz" npm http GET http://registry.npmjs.org/bindings npm http GET http://registry.npmjs.org/nan npm http GET http://registry.npmjs.org/uint64be npm http GET http://registry.npmjs.org/blake2 npm http GET http://registry.npmjs.org/bigint-buffer npm http 304 http://registry.npmjs.org/nan npm http 304 http://registry.npmjs.org/bindings npm http 304 http://registry.npmjs.org/bigint-buffer npm http 304 http://registry.npmjs.org/uint64be npm http 304 http://registry.npmjs.org/blake2 npm WARN engine [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"v0.10.25","npm":"1.3.10"}) npm WARN engine [email protected]: wanted: {"node":">= 8.0.0"} (current: {"node":"v0.10.25","npm":"1.3.10"}) npm http GET http://registry.npmjs.org/file-uri-to-path/1.0.0

[email protected] install /mydesk/pool/node_modules/cryptonight-hashing/node_modules/bigint-buffer npm run rebuild || echo "Couldn't build bindings. Non-native version used."

npm http 200 http://registry.npmjs.org/file-uri-to-path/1.0.0 npm http GET http://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz npm http 200 http://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz

[email protected] rebuild /mydesk/pool/node_modules/cryptonight-hashing/node_modules/bigint-buffer node-gyp rebuild

[email protected] install /mydesk/pool/node_modules/cryptonight-hashing/node_modules/blake2 node-gyp rebuild

make: Entering directory /mydesk/pool/node_modules/cryptonight-hashing/node_modules/bigint-buffer/build' CC(target) Release/obj.target/bigint_buffer/src/bigint-buffer.o ../src/bigint-buffer.c:3:22: fatal error: node_api.h: No such file or directory #include <node_api.h> ^ compilation terminated. make: Entering directory /mydesk/pool/node_modules/cryptonight-hashing/node_modules/blake2/build' CXX(target) Release/obj.target/binding/src/binding.o make: *** [Release/obj.target/bigint_buffer/src/bigint-buffer.o] Error 1 make: Leaving directory /mydesk/pool/node_modules/cryptonight-hashing/node_modules/bigint-buffer/build' gyp ERR! build error gyp ERR! stack Error: make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.13.0-170-generic gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /mydesk/pool/node_modules/cryptonight-hashing/node_modules/bigint-buffer gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm ERR! weird error 1 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0 Couldn't build bindings. Non-native version used. ../src/binding.cpp:57:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat] const char *key_data = nullptr; ^ ../src/binding.cpp: In static member function ‘static void Hash::Init(v8::Localv8::Object)’: ../src/binding.cpp:41:114: error: no matching function for call to ‘v8::Object::Set(v8::Localv8::Context, v8::Localv8::String, v8::Localv8::Function)’ target->Set(Nan::GetCurrentContext(), Nan::New("Hash").ToLocalChecked(), Nan::GetFunction(tpl).ToLocalChecked()); ^ ../src/binding.cpp:41:114: note: candidates are: In file included from /usr/include/nodejs/src/node.h:62:0, from ../src/binding.cpp:1: /usr/include/nodejs/deps/v8/include/v8.h:1483:17: note: bool v8::Object::Set(v8::Handlev8::Value, v8::Handlev8::Value, v8::PropertyAttribute) V8EXPORT bool Set(Handle<Value> key, ^ /usr/include/nodejs/deps/v8/include/v8.h:1483:17: note: no known conversion for argument 3 from ‘v8::Localv8::Function’ to ‘v8::PropertyAttribute’ /usr/include/nodejs/deps/v8/include/v8.h:1487:17: note: bool v8::Object::Set(uint32_t, v8::Handlev8::Value) V8EXPORT bool Set(uint32_t index, ^ /usr/include/nodejs/deps/v8/include/v8.h:1487:17: note: candidate expects 2 arguments, 3 provided ../src/binding.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Hash::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/binding.cpp:55:126: error: no matching function for call to ‘v8::Value::ToString(v8::Localv8::Context)’ std::string algo = std::string(*v8::String::Utf8Value(v8::Isolate::GetCurrent(), info[0]->ToString(Nan::GetCurrentContext()).FromMaybe(v8::Localv8::String()))); ^ ../src/binding.cpp:55:126: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../src/binding.cpp:1: /usr/include/nodejs/deps/v8/include/v8.h:971:26: note: v8::Localv8::String v8::Value::ToString() const V8EXPORT Local<String> ToString() const; ^ /usr/include/nodejs/deps/v8/include/v8.h:971:26: note: candidate expects 0 arguments, 1 provided ../src/binding.cpp:57:26: error: ‘nullptr’ was not declared in this scope const char *key_data = nullptr; ^ ../src/binding.cpp:73:67: error: no matching function for call to ‘v8::Value::IntegerValue(v8::Localv8::Context)’ digest_length = info[2]->IntegerValue(Nan::GetCurrentContext()).ToChecked(); ^ ../src/binding.cpp:73:67: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../src/binding.cpp:1: /usr/include/nodejs/deps/v8/include/v8.h:986:20: note: int64_t v8::Value::IntegerValue() const V8EXPORT int64_t IntegerValue() const; ^ /usr/include/nodejs/deps/v8/include/v8.h:986:20: note: candidate expects 0 arguments, 1 provided ../src/binding.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Hash::Update(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/binding.cpp:190:80: error: no matching function for call to ‘v8::Value::ToObject(v8::Localv8::Context)’ v8::Localv8::Object buffer_obj = info[0]->ToObject(Nan::GetCurrentContext()).ToLocalChecked(); ^ ../src/binding.cpp:190:80: note: candidate is: In file included from /usr/include/nodejs/src/node.h:62:0, from ../src/binding.cpp:1: /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: v8::Localv8::Object v8::Value::ToObject() const V8EXPORT Local<Object> ToObject() const; ^ /usr/include/nodejs/deps/v8/include/v8.h:973:26: note: candidate expects 0 arguments, 1 provided At global scope: cc1plus: warning: unrecognized command line option "-Wno-unused-const-variable" [enabled by default] make: *** [Release/obj.target/binding/src/binding.o] Error 1 make: Leaving directory /mydesk/pool/node_modules/cryptonight-hashing/node_modules/blake2/build' gyp ERR! build error gyp ERR! stack Error: make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.13.0-170-generic gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /mydesk/pool/node_modules/cryptonight-hashing/node_modules/blake2 gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0 ` What should I do to make him run?

mengxin239 avatar Dec 04 '21 17:12 mengxin239