node-appletv
node-appletv copied to clipboard
Error adding pacakge
When trying to install the package using sudo npm i node-appletv I am getting an error, it is different than issue #43 .
I am using node.js version 18.10.1
Adding the log in another message
$ sudo npm i node-appletv
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /home/zrho/Documents/git/simple-hub/apps/hub_javascript/node_modules/ed25519
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/zrho/Documents/git/simple-hub/apps/hub_javascript/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! make: Leaving directory '/home/zrho/Documents/git/simple-hub/apps/hub_javascript/node_modules/ed25519/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/share/nodejs/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/zrho/Documents/git/simple-hub/apps/hub_javascript/node_modules/ed25519/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/share/nodejs/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/include/nodejs/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/usr/include/nodejs',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/share/nodejs/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/usr/include/nodejs/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/zrho/Documents/git/simple-hub/apps/hub_javascript/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/open.c: In function ‘crypto_sign_verify’:
npm ERR! ../src/ed25519/open.c:57:5: warning: ‘SHA512_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
npm ERR! 57 | SHA512_Init(&hash);
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/ed25519/open.c:2:
npm ERR! /usr/include/openssl/sha.h:123:27: note: declared here
npm ERR! 123 | OSSL_DEPRECATEDIN_3_0 int SHA512_Init(SHA512_CTX *c);
npm ERR! | ^~~~~~~~~~~
npm ERR! ../src/ed25519/open.c:58:5: warning: ‘SHA512_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
npm ERR! 58 | SHA512_Update(&hash, signature, 32);
npm ERR! | ^~~~~~~~~~~~~
npm ERR! /usr/include/openssl/sha.h:124:27: note: declared here
npm ERR! 124 | OSSL_DEPRECATEDIN_3_0 int SHA512_Update(SHA512_CTX *c,
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ../src/ed25519/open.c:59:5: warning: ‘SHA512_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
npm ERR! 59 | SHA512_Update(&hash, public_key, 32);
npm ERR! | ^~~~~~~~~~~~~
npm ERR! /usr/include/openssl/sha.h:124:27: note: declared here
npm ERR! 124 | OSSL_DEPRECATEDIN_3_0 int SHA512_Update(SHA512_CTX *c,
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ../src/ed25519/open.c:60:5: warning: ‘SHA512_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
npm ERR! 60 | SHA512_Update(&hash, message, message_len);
npm ERR! | ^~~~~~~~~~~~~
npm ERR! /usr/include/openssl/sha.h:124:27: note: declared here
npm ERR! 124 | OSSL_DEPRECATEDIN_3_0 int SHA512_Update(SHA512_CTX *c,
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ../src/ed25519/open.c:61:5: warning: ‘SHA512_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
npm ERR! 61 | SHA512_Final(h, &hash);
npm ERR! | ^~~~~~~~~~~~
npm ERR! /usr/include/openssl/sha.h:126:27: note: declared here
npm ERR! 126 | OSSL_DEPRECATEDIN_3_0 int SHA512_Final(unsigned char *md, SHA512_CTX *c);
npm ERR! | ^~~~~~~~~~~~
npm ERR! ../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE MakeKeypair(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/ed25519.cc:19:104: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 19 | if ((info.Length() < 1) || (!Buffer::HasInstance(info[0])) || (Buffer::Length(info[0]->ToObject()) != 32)) {
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! In file included from /usr/include/nodejs/deps/v8/include/v8-primitive.h:11,
npm ERR! from /usr/include/nodejs/deps/v8/include/v8-object.h:11,
npm ERR! from /usr/include/nodejs/deps/v8/include/v8-array-buffer.h:13,
npm ERR! from /usr/include/nodejs/deps/v8/include/v8.h:24,
npm ERR! from /usr/include/nodejs/src/node.h:73,
npm ERR! from ../src/ed25519.cc:1:
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:22:83: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 22 | const unsigned char* seed = (unsigned char*)Buffer::Data(info[0]->ToObject());
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:35:20: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 35 | result->Set(Nan::New("publicKey").ToLocalChecked(), publicKey);
npm ERR! | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/ed25519.cc:36:20: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 36 | result->Set(Nan::New("privateKey").ToLocalChecked(), privateKey);
npm ERR! | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-object.h:247: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:75: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 53 | if ((info.Length() < 2) || (!Buffer::HasInstance(info[0]->ToObject()))) {
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:56:80: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 56 | if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 32)) {
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:57:85: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 57 | unsigned char* seed = (unsigned char*)Buffer::Data(info[1]->ToObject());
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:65:87: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 65 | } else if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 64)) {
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:66:76: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 66 | privateKey = (unsigned char*)Buffer::Data(info[1]->ToObject());
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:68:66: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 68 | Local<Value> privateKeyBuffer = info[1]->ToObject()->Get(Nan::New<String>("privateKey").ToLocalChecked())->ToObject();
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:76:9: error: ‘Handle’ was not declared in this scope
npm ERR! 76 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ^~~~~~
npm ERR! ../src/ed25519.cc:76:22: error: expected primary-expression before ‘>’ token
npm ERR! 76 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ^
npm ERR! ../src/ed25519.cc:76:24: error: ‘message’ was not declared in this scope
npm ERR! 76 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ^~~~~~~
npm ERR! ../src/ed25519.cc:76:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 76 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372: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:75: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 101 | if ((info.Length() < 3) || (!Buffer::HasInstance(info[0]->ToObject())) ||
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:102:56: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 102 | (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) {
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:102:103: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 102 | (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) {
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:105:9: error: ‘Handle’ was not declared in this scope
npm ERR! 105 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ^~~~~~
npm ERR! ../src/ed25519.cc:105:22: error: expected primary-expression before ‘>’ token
npm ERR! 105 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ^
npm ERR! ../src/ed25519.cc:105:24: error: ‘message’ was not declared in this scope
npm ERR! 105 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ^~~~~~~
npm ERR! ../src/ed25519.cc:105:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 105 | Handle<Object> message = info[0]->ToObject();
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:106:22: error: expected primary-expression before ‘>’ token
npm ERR! 106 | Handle<Object> signature = info[1]->ToObject();
npm ERR! | ^
npm ERR! ../src/ed25519.cc:106:24: error: ‘signature’ was not declared in this scope; did you mean ‘sigreturn’?
npm ERR! 106 | Handle<Object> signature = info[1]->ToObject();
npm ERR! | ^~~~~~~~~
npm ERR! | sigreturn
npm ERR! ../src/ed25519.cc:106:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 106 | Handle<Object> signature = info[1]->ToObject();
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc:107:22: error: expected primary-expression before ‘>’ token
npm ERR! 107 | Handle<Object> publicKey = info[2]->ToObject();
npm ERR! | ^
npm ERR! ../src/ed25519.cc:107:24: error: ‘publicKey’ was not declared in this scope
npm ERR! 107 | Handle<Object> publicKey = info[2]->ToObject();
npm ERR! | ^~~~~~~~~
npm ERR! ../src/ed25519.cc:107:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR! 107 | Handle<Object> publicKey = info[2]->ToObject();
npm ERR! | ~~~~~~~~~~~~~~~~~^~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR! 372 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! | ^~~~~~~~
npm ERR! /usr/include/nodejs/deps/v8/include/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/ed25519.cc: At global scope:
npm ERR! ../src/ed25519.cc:120:6: error: variable or field ‘InitModule’ declared void
npm ERR! 120 | void InitModule(Handle<Object> exports) {
npm ERR! | ^~~~~~~~~~
npm ERR! ../src/ed25519.cc:120:17: error: ‘Handle’ was not declared in this scope
npm ERR! 120 | void InitModule(Handle<Object> exports) {
npm ERR! | ^~~~~~
npm ERR! ../src/ed25519.cc:120:30: error: expected primary-expression before ‘>’ token
npm ERR! 120 | void InitModule(Handle<Object> exports) {
npm ERR! | ^
npm ERR! ../src/ed25519.cc:120:32: error: ‘exports’ was not declared in this scope
npm ERR! 120 | void InitModule(Handle<Object> exports) {
npm ERR! | ^~~~~~~
npm ERR! ../src/ed25519.cc:126:22: error: ‘InitModule’ was not declared in this scope
npm ERR! 126 | NODE_MODULE(ed25519, InitModule)
npm ERR! | ^~~~~~~~~~
npm ERR! /usr/include/nodejs/src/node.h:1014:36: note: in definition of macro ‘NODE_MODULE_X’
npm ERR! 1014 | (node::addon_register_func) (regfunc), \
npm ERR! | ^~~~~~~
npm ERR! ../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR! 126 | NODE_MODULE(ed25519, InitModule)
npm ERR! | ^~~~~~~~~~~
npm ERR! make: *** [ed25519.target.mk:154: 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/share/nodejs/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System Linux 6.8.0-55-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/share/nodejs/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/zrho/Documents/git/simple-hub/apps/hub_javascript/node_modules/ed25519
npm ERR! gyp ERR! node -v v18.19.1
npm ERR! gyp ERR! node-gyp -v v9.3.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2025-03-23T17_22_42_862Z-debug-0.log