We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i try to install the snak module i get the following error npm ERR! path /usr/local/lib/node_modules/snak/node_modules/ed25519 npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/usr/local/lib/node_modules/snak/node_modules/ed25519/build' npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sign.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/open.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o npm ERR! CXX(target) Release/obj.target/ed25519/src/ed25519.o npm ERR! ed25519.target.mk:158: recipe for target 'Release/obj.target/ed25519/src/ed25519.o' failed npm ERR! make: Leaving directory '/usr/local/lib/node_modules/snak/node_modules/ed25519/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.2 | linux | x64 npm ERR! gyp info find Python using Python version 3.6.9 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/local/lib/node_modules/npm/node_modules/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 '/usr/local/lib/node_modules/snak/node_modules/ed25519/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/swarm/.cache/node-gyp/16.14.2/include/node/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=/home/swarm/.cache/node-gyp/16.14.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/swarm/.cache/node-gyp/16.14.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/snak/node_modules/ed25519', 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! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE MakeKeypair(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:19:98: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 1) || (!Buffer::HasInstance(info[0])) || (Buffer::Length(info[0]->ToObject()) != 32)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:22:77: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! const unsigned char* seed = (unsigned char*)Buffer::Data(info[0]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:35:63: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’ npm ERR! result->Set(Nan::New("publicKey").ToLocalChecked(), publicKey); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/ed25519.cc:36:65: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’ npm ERR! result->Set(Nan::New("privateKey").ToLocalChecked(), privateKey); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Sign(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:53:69: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 2) || (!Buffer::HasInstance(info[0]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:56:74: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 32)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:57:72: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! unsigned char* seed = (unsigned char*)Buffer::Data(info[1]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:65:81: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! } else if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 64)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:66:63: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! privateKey = (unsigned char*)Buffer::Data(info[1]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:68:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Local<Value> privateKeyBuffer = info[1]->ToObject()->Get(Nan::New<String>("privateKey").ToLocalChecked())->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:76:2: error: ‘Handle’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:76:2: note: suggested alternative: ‘rand_r’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:76:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:76:17: error: ‘message’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:76:45: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Verify(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:101:69: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 3) || (!Buffer::HasInstance(info[0]->ToObject())) || npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:102:43: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:102:90: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:105:2: error: ‘Handle’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:105:2: note: suggested alternative: ‘rand_r’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:105:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:105:17: error: ‘message’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:105:45: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:106:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:106:17: error: ‘signature’ was not declared in this scope npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! ../src/ed25519.cc:106:17: note: suggested alternative: ‘sigreturn’ npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! sigreturn npm ERR! ../src/ed25519.cc:106:47: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:107:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:107:17: error: ‘publicKey’ was not declared in this scope npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! ../src/ed25519.cc:107:47: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc: At global scope: npm ERR! ../src/ed25519.cc:120:17: error: variable or field ‘InitModule’ declared void npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:120:17: error: ‘Handle’ was not declared in this scope npm ERR! ../src/ed25519.cc:120:17: note: suggested alternative: ‘rand_r’ npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:120:30: error: expected primary-expression before ‘>’ token npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^ npm ERR! ../src/ed25519.cc:120:32: error: ‘exports’ was not declared in this scope npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~~ npm ERR! In file included from ../src/ed25519.cc:1:0: npm ERR! ../src/ed25519.cc:126:22: error: ‘InitModule’ was not declared in this scope npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:842:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^~~~~~~~~~~ npm ERR! ../src/ed25519.cc:126:22: note: suggested alternative: ‘_module’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:842:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^~~~~~~~~~~ npm ERR! make: *** [Release/obj.target/ed25519/src/ed25519.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/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 4.15.0-154-generic npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/snak/node_modules/ed25519 npm ERR! gyp ERR! node -v v16.14.2 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok
npm ERR! path /usr/local/lib/node_modules/snak/node_modules/ed25519 npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/usr/local/lib/node_modules/snak/node_modules/ed25519/build' npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sign.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/open.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o npm ERR! CXX(target) Release/obj.target/ed25519/src/ed25519.o npm ERR! ed25519.target.mk:158: recipe for target 'Release/obj.target/ed25519/src/ed25519.o' failed npm ERR! make: Leaving directory '/usr/local/lib/node_modules/snak/node_modules/ed25519/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.2 | linux | x64 npm ERR! gyp info find Python using Python version 3.6.9 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/local/lib/node_modules/npm/node_modules/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 '/usr/local/lib/node_modules/snak/node_modules/ed25519/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/swarm/.cache/node-gyp/16.14.2/include/node/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=/home/swarm/.cache/node-gyp/16.14.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/swarm/.cache/node-gyp/16.14.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/snak/node_modules/ed25519', 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! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE MakeKeypair(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:19:98: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 1) || (!Buffer::HasInstance(info[0])) || (Buffer::Length(info[0]->ToObject()) != 32)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:22:77: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! const unsigned char* seed = (unsigned char*)Buffer::Data(info[0]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:35:63: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’ npm ERR! result->Set(Nan::New("publicKey").ToLocalChecked(), publicKey); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/ed25519.cc:36:65: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’ npm ERR! result->Set(Nan::New("privateKey").ToLocalChecked(), privateKey); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Sign(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:53:69: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 2) || (!Buffer::HasInstance(info[0]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:56:74: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 32)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:57:72: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! unsigned char* seed = (unsigned char*)Buffer::Data(info[1]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:65:81: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! } else if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 64)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:66:63: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! privateKey = (unsigned char*)Buffer::Data(info[1]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:68:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Local<Value> privateKeyBuffer = info[1]->ToObject()->Get(Nan::New<String>("privateKey").ToLocalChecked())->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:76:2: error: ‘Handle’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:76:2: note: suggested alternative: ‘rand_r’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:76:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:76:17: error: ‘message’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:76:45: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Verify(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:101:69: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 3) || (!Buffer::HasInstance(info[0]->ToObject())) || npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:102:43: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:102:90: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:105:2: error: ‘Handle’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:105:2: note: suggested alternative: ‘rand_r’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:105:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:105:17: error: ‘message’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:105:45: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:106:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:106:17: error: ‘signature’ was not declared in this scope npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! ../src/ed25519.cc:106:17: note: suggested alternative: ‘sigreturn’ npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! sigreturn npm ERR! ../src/ed25519.cc:106:47: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:107:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:107:17: error: ‘publicKey’ was not declared in this scope npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! ../src/ed25519.cc:107:47: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc: At global scope: npm ERR! ../src/ed25519.cc:120:17: error: variable or field ‘InitModule’ declared void npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:120:17: error: ‘Handle’ was not declared in this scope npm ERR! ../src/ed25519.cc:120:17: note: suggested alternative: ‘rand_r’ npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:120:30: error: expected primary-expression before ‘>’ token npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^ npm ERR! ../src/ed25519.cc:120:32: error: ‘exports’ was not declared in this scope npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~~ npm ERR! In file included from ../src/ed25519.cc:1:0: npm ERR! ../src/ed25519.cc:126:22: error: ‘InitModule’ was not declared in this scope npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:842:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^~~~~~~~~~~ npm ERR! ../src/ed25519.cc:126:22: note: suggested alternative: ‘_module’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:842:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^~~~~~~~~~~ npm ERR! make: *** [Release/obj.target/ed25519/src/ed25519.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:
npm ERR! A complete log of this run can be found in: npm ERR! /home/swarm/.npm/_logs/2022-04-12T08_20_26_934Z-debug-0.log`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when i try to install the snak module i get the following error
npm ERR! path /usr/local/lib/node_modules/snak/node_modules/ed25519 npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/usr/local/lib/node_modules/snak/node_modules/ed25519/build' npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sign.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/open.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o npm ERR! CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o npm ERR! CXX(target) Release/obj.target/ed25519/src/ed25519.o npm ERR! ed25519.target.mk:158: recipe for target 'Release/obj.target/ed25519/src/ed25519.o' failed npm ERR! make: Leaving directory '/usr/local/lib/node_modules/snak/node_modules/ed25519/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.2 | linux | x64 npm ERR! gyp info find Python using Python version 3.6.9 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/local/lib/node_modules/npm/node_modules/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 '/usr/local/lib/node_modules/snak/node_modules/ed25519/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/swarm/.cache/node-gyp/16.14.2/include/node/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=/home/swarm/.cache/node-gyp/16.14.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/swarm/.cache/node-gyp/16.14.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/snak/node_modules/ed25519', 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! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE MakeKeypair(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:19:98: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 1) || (!Buffer::HasInstance(info[0])) || (Buffer::Length(info[0]->ToObject()) != 32)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:22:77: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! const unsigned char* seed = (unsigned char*)Buffer::Data(info[0]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:35:63: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’ npm ERR! result->Set(Nan::New("publicKey").ToLocalChecked(), publicKey); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/ed25519.cc:36:65: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’ npm ERR! result->Set(Nan::New("privateKey").ToLocalChecked(), privateKey); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>) npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Sign(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:53:69: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 2) || (!Buffer::HasInstance(info[0]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:56:74: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 32)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:57:72: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! unsigned char* seed = (unsigned char*)Buffer::Data(info[1]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:65:81: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! } else if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 64)) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:66:63: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! privateKey = (unsigned char*)Buffer::Data(info[1]->ToObject()); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:68:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Local<Value> privateKeyBuffer = info[1]->ToObject()->Get(Nan::New<String>("privateKey").ToLocalChecked())->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:76:2: error: ‘Handle’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:76:2: note: suggested alternative: ‘rand_r’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:76:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:76:17: error: ‘message’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:76:45: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Verify(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ed25519.cc:101:69: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! if ((info.Length() < 3) || (!Buffer::HasInstance(info[0]->ToObject())) || npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:102:43: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:102:90: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) { npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:105:2: error: ‘Handle’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:105:2: note: suggested alternative: ‘rand_r’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:105:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:105:17: error: ‘message’ was not declared in this scope npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:105:45: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> message = info[0]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:106:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:106:17: error: ‘signature’ was not declared in this scope npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! ../src/ed25519.cc:106:17: note: suggested alternative: ‘sigreturn’ npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! sigreturn npm ERR! ../src/ed25519.cc:106:47: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> signature = info[1]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc:107:15: error: expected primary-expression before ‘>’ token npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^ npm ERR! ../src/ed25519.cc:107:17: error: ‘publicKey’ was not declared in this scope npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^~~~~~~~~ npm ERR! ../src/ed25519.cc:107:47: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! Handle<Object> publicKey = info[2]->ToObject(); npm ERR! ^ npm ERR! In file included from /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:63:0, npm ERR! from ../src/ed25519.cc:1: npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ed25519.cc: At global scope: npm ERR! ../src/ed25519.cc:120:17: error: variable or field ‘InitModule’ declared void npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! ../src/ed25519.cc:120:17: error: ‘Handle’ was not declared in this scope npm ERR! ../src/ed25519.cc:120:17: note: suggested alternative: ‘rand_r’ npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/ed25519.cc:120:30: error: expected primary-expression before ‘>’ token npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^ npm ERR! ../src/ed25519.cc:120:32: error: ‘exports’ was not declared in this scope npm ERR! void InitModule(Handle<Object> exports) { npm ERR! ^~~~~~~ npm ERR! In file included from ../src/ed25519.cc:1:0: npm ERR! ../src/ed25519.cc:126:22: error: ‘InitModule’ was not declared in this scope npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:842:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^~~~~~~~~~~ npm ERR! ../src/ed25519.cc:126:22: note: suggested alternative: ‘_module’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^ npm ERR! /home/swarm/.cache/node-gyp/16.14.2/include/node/node.h:842:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(ed25519, InitModule) npm ERR! ^~~~~~~~~~~ npm ERR! make: *** [Release/obj.target/ed25519/src/ed25519.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:
make` failed with exit code: 2npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 4.15.0-154-generic
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/snak/node_modules/ed25519
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/swarm/.npm/_logs/2022-04-12T08_20_26_934Z-debug-0.log`
The text was updated successfully, but these errors were encountered: