Code Monkey home page Code Monkey logo

Comments (5)

AndreasGassmann avatar AndreasGassmann commented on September 2, 2024

It looks like you have some problems with node-gyp on your system. Both the keccak and secp256k1 could not be built on your system. However, if that happens, it should just use the pure JS implementation, so I'm not sure if that is actually what is causing npm to fail.

I think npm usually stops immediately as soon as something essential fails, so the last lines of the log would be the most important.

To speed up the install you can try to remove the puppeteer package from the dev dependencies. I think then chromium shouldn't be downloaded anymore.

from airgap-wallet.

cherrygot-personal avatar cherrygot-personal commented on September 2, 2024

Hmm, you're right. It does show that JS implementation will be used as a fallback. Updating npm-gyp was a great help. Errors reduced and things became clear. I still am encountering some errors and warnings. Here's the complete output (after excluding puppeteer):


> [email protected] extension:prepare /run/media/FedUser/Stuffffff/Programming/Web/Direct_Clients/airgap-wallet
> cd web-extension && npm install


> [email protected] preinstall /run/media/FedUser/Stuffffff/Programming/Web/Direct_Clients/airgap-wallet/web-extension/node_modules/scrypt
> node node-scrypt-preinstall.js


> [email protected] install /run/media/FedUser/Stuffffff/Programming/Web/Direct_Clients/airgap-wallet/web-extension/node_modules/scrypt
> node-gyp rebuild

make: Entering directory '/run/media/FedUser/Stuffffff/Programming/Web/Direct_Clients/airgap-wallet/web-extension/node_modules/scrypt/build'
  SOLINK_MODULE(target) Release/obj.target/copied_files.node
  COPY Release/copied_files.node
  CC(target) Release/obj.target/scrypt_wrapper/src/util/memlimit.o
  CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/keyderivation.o
  CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/pickparams.o
  CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/hash.o
  AR(target) Release/obj.target/scrypt_wrapper.a
  COPY Release/scrypt_wrapper.a
  CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt.o
  CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt_smix.o
  CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/warnp.o
  CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/alg/sha256.o
  CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/insecure_memzero.o
  CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/scryptenc/scryptenc_cpuperf.o
  AR(target) Release/obj.target/scrypt_lib.a
  COPY Release/scrypt_lib.a
  CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_common.o
In file included from ../../nan/nan_converters.h:67:0,
                 from ../../nan/nan.h:202,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
       val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                   ^
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
 X(Boolean)
 ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2568:59: note: declared here
                 V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                           ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../../nan/nan_converters.h:67:0,
                 from ../../nan/nan.h:202,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
   return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                         ^
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
 X(bool, Boolean)
 ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2606:51: note: declared here
                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                   ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:203,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                           , obj));
                                ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:4170:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
   static MaybeLocal<Function> New(
                               ^~~
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:4170:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:203,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
   return v8::StringObject::New(value).As<v8::StringObject>();
                                     ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:5426:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
   static Local<Value> New(Isolate* isolate, Local<String> value);
                       ^~~
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:5426:23: note:   candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:203,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
   return v8::StringObject::New(value).As<v8::StringObject>();
                                                          ^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
   return v8::StringObject::New(value).As<v8::StringObject>();
                                                            ^
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../../nan/nan.h:1034:53: error: no matching function for call to ‘v8::Value::ToString()’
       v8::Local<v8::String> string = from->ToString();
                                                     ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h:1044:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                          ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2782:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
       ^~~~~~~~~
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:2782:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1818:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1824:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     New(persistentHandle)->Set(key, value);
                                          ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1830:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     New(persistentHandle)->Set(index, value);
                                            ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1836:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                             ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:3457:51: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                   ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
../../nan/nan.h:1842:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return scope.Escape(New(persistentHandle)->Get(key));
                                                       ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:3457:51: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                   ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../nan/nan.h:1847:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return scope.Escape(New(persistentHandle)->Get(index));
                                                         ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:3461:51: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                   ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:53,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
     assert(persistent().IsNearDeath());
                         ^
In file included from ../../nan/nan.h:2657:0,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
     persistent().MarkIndependent();
                                  ^
In file included from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8.h:567:22: note: declared here
       V8_INLINE void MarkIndependent());
                      ^
/home/FedUser/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:53,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
     assert(wrap->handle_.IsNearDeath());
                          ^
make: *** [scrypt.target.mk:129: Release/obj.target/scrypt/src/node-boilerplate/scrypt_common.o] Error 1
make: Leaving directory '/run/media/FedUser/Stuffffff/Programming/Web/Direct_Clients/airgap-wallet/web-extension/node_modules/scrypt/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/FedUser/.npm-global/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.18.19-100.fc27.x86_64
gyp ERR! command "/usr/local/n/versions/node/12.13.1/bin/node" "/home/FedUser/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /run/media/FedUser/Stuffffff/Programming/Web/Direct_Clients/airgap-wallet/web-extension/node_modules/scrypt
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/FedUser/.npm/_logs/2020-03-16T13_41_08_214Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] extension:prepare: `cd web-extension && npm install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] extension:prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/FedUser/.npm/_logs/2020-03-16T13_41_08_303Z-debug.log

This time, I was able to narrow down the problem. Here's the culprit.

                 from /home/FedUser/.cache/node-gyp/12.13.1/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:53,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
     assert(wrap->handle_.IsNearDeath());
                          ^

Not sure where this leads.

from airgap-wallet.

cherrygot-personal avatar cherrygot-personal commented on September 2, 2024

It was an issue with web3. You may want to update it from beta to stable release as it no longer works with Node 12. Here's the link to the issue. web3/web3.js#2913 (comment)

from airgap-wallet.

AndreasGassmann avatar AndreasGassmann commented on September 2, 2024

Thanks for reporting what the issue was. We'll look into this because web3 is not a direct dependency anymore. We'll have to track down the package that still uses it.

from airgap-wallet.

AndreasGassmann avatar AndreasGassmann commented on September 2, 2024

I just checked and it looks like none of our dependencies use web3 anymore, so this issue should be solved.

from airgap-wallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.