pocketh
pocketh copied to clipboard
Cannot install on node v15
I'm using [email protected] and [email protected]. Sorry for the log dump.
npm ERR! code 1
npm ERR! path /Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/pocketh/node_modules/scrypt
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! SOLINK_MODULE(target) Release/copied_files.node
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/util/memlimit.o
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/keyderivation.o
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/pickparams.o
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/hash.o
npm ERR! LIBTOOL-STATIC Release/scrypt_wrapper.a
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt_smix.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/warnp.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/alg/sha256.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/insecure_memzero.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/scryptenc/scryptenc_cpuperf.o
npm ERR! LIBTOOL-STATIC Release/scrypt_lib.a
npm ERR! CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_common.o
npm ERR! CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o
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] | darwin | x64
npm ERR! gyp info find Python using Python version 3.9.5 found at "/usr/local/opt/[email protected]/bin/python3.9"
npm ERR! gyp info spawn /usr/local/opt/[email protected]/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/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 '/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/pocketh/node_modules/scrypt/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/paulrberg/Library/Caches/node-gyp/15.11.0/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=/Users/paulrberg/Library/Caches/node-gyp/15.11.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/paulrberg/Library/Caches/node-gyp/15.11.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/pocketh/node_modules/scrypt',
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/node-boilerplate/scrypt_common.cc:98:12: warning: address of stack memory associated with local variable 'scrypt_err_description' returned [-Wreturn-stack-address]
npm ERR! return scrypt_err_description.c_str();
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! 1 warning generated.
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28:
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_async.h:28:
npm ERR! ../src/node-boilerplate/inc/scrypt_common.h:39:14: error: no matching member function for call to 'Get'
npm ERR! N(obj->Get(Nan::New("N").ToLocalChecked())->Uint32Value()),
npm ERR! ~~~~~^~~
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3763:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3766:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! ^
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28:
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_async.h:28:
npm ERR! ../src/node-boilerplate/inc/scrypt_common.h:40:14: error: no matching member function for call to 'Get'
npm ERR! r(obj->Get(Nan::New("r").ToLocalChecked())->Uint32Value()),
npm ERR! ~~~~~^~~
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3763:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3766:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! ^
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28:
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_async.h:28:
npm ERR! ../src/node-boilerplate/inc/scrypt_common.h:41:14: error: no matching member function for call to 'Get'
npm ERR! p(obj->Get(Nan::New("p").ToLocalChecked())->Uint32Value()) {}
npm ERR! ~~~~~^~~
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3763:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3766:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! ^
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28:
npm ERR! ../src/node-boilerplate/inc/scrypt_async.h:53:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
npm ERR! callback->Call(1, argv);
npm ERR! ^
npm ERR! ../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
npm ERR! NAN_DEPRECATED inline v8::Local<v8::Value>
npm ERR! ^
npm ERR! ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! # define NAN_DEPRECATED __attribute__((deprecated))
npm ERR! ^
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:35:36: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! maxtime(info[0]->NumberValue()),
npm ERR! ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:2907:39: note: 'NumberValue' declared here
npm ERR! V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
npm ERR! ^
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:36:39: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! maxmemfrac(info[1]->NumberValue()),
npm ERR! ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:2907:39: note: 'NumberValue' declared here
npm ERR! V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
npm ERR! ^
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:37:36: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! maxmem(info[2]->IntegerValue()),
npm ERR! ~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:2909:40: note: 'IntegerValue' declared here
npm ERR! V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR! ^
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:38:39: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! osfreemem(info[3]->IntegerValue())
npm ERR! ~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:2909:40: note: 'IntegerValue' declared here
npm ERR! V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR! ^
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:23:8: error: no matching member function for call to 'Set'
npm ERR! obj->Set(Nan::New("N").ToLocalChecked(), Nan::New<Integer>(logN));
npm ERR! ~~~~~^~~
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3716:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3719:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! ^
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:24:8: error: no matching member function for call to 'Set'
npm ERR! obj->Set(Nan::New("r").ToLocalChecked(), Nan::New<Integer>(r));
npm ERR! ~~~~~^~~
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3716:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3719:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! ^
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:25:8: error: no matching member function for call to 'Set'
npm ERR! obj->Set(Nan::New("p").ToLocalChecked(), Nan::New<Integer>(p));
npm ERR! ~~~~~^~~
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3716:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! ^
npm ERR! /Users/paulrberg/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3719:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! ^
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:32:13: warning: 'Call' is deprecated [-Wdeprecated-declarations]
npm ERR! callback->Call(2, argv);
npm ERR! ^
npm ERR! ../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
npm ERR! NAN_DEPRECATED inline v8::Local<v8::Value>
npm ERR! ^
npm ERR! ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! # define NAN_DEPRECATED __attribute__((deprecated))
npm ERR! ^
npm ERR! 2 warnings and 10 errors generated.
npm ERR! make: *** [Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.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 (/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:378:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.4.0
npm ERR! gyp ERR! command "/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/bin/node" "/Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/paulrberg/.fnm/node-versions/v15.11.0/installation/lib/node_modules/pocketh/node_modules/scrypt
npm ERR! gyp ERR! node -v v15.11.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/paulrberg/.npm/_logs/2021-06-10T13_20_42_124Z-debug.log
Adding here as this issue looks similar Node version - v16.18.0 NPM version - 8.19.2
cp@cp ~ npm install --global pocketh 1 ↵ 1607 16:00:12
npm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
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 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 WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! code 1
npm ERR! path /home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/pocketh/node_modules/scrypt
npm ERR! command failed
npm ERR! command sh -c -- node-gyp rebuild
npm ERR! make: Entering directory '/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/pocketh/node_modules/scrypt/build'
npm ERR! SOLINK_MODULE(target) Release/obj.target/copied_files.node
npm ERR! COPY Release/copied_files.node
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/util/memlimit.o
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/keyderivation.o
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/pickparams.o
npm ERR! CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/hash.o
npm ERR! AR(target) Release/obj.target/scrypt_wrapper.a
npm ERR! COPY Release/scrypt_wrapper.a
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt_smix.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/warnp.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/alg/sha256.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/insecure_memzero.o
npm ERR! CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/scryptenc/scryptenc_cpuperf.o
npm ERR! AR(target) Release/obj.target/scrypt_lib.a
npm ERR! COPY Release/scrypt_lib.a
npm ERR! CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_common.o
npm ERR! CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o
npm ERR! make: Leaving directory '/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/pocketh/node_modules/scrypt/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.10.6 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 '/home/cp/.nvm/versions/node/v16.18.0/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 '/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/pocketh/node_modules/scrypt/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/cp/.cache/node-gyp/16.18.0/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/cp/.cache/node-gyp/16.18.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/cp/.cache/node-gyp/16.18.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/pocketh/node_modules/scrypt',
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! In file included from ../src/node-boilerplate/inc/scrypt_async.h:28,
npm ERR! from ../src/node-boilerplate/inc/scrypt_params_async.h:28,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_common.h: In constructor ‘NodeScrypt::Params::Params(const v8::Local<v8::Object>&)’:
npm ERR! ../src/node-boilerplate/inc/scrypt_common.h:39:17: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR! 39 | N(obj->Get(Nan::New("N").ToLocalChecked())->Uint32Value()),
npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_async.h:28,
npm ERR! from ../src/node-boilerplate/inc/scrypt_params_async.h:28,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_common.h:40:17: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR! 40 | r(obj->Get(Nan::New("r").ToLocalChecked())->Uint32Value()),
npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_async.h:28,
npm ERR! from ../src/node-boilerplate/inc/scrypt_params_async.h:28,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_common.h:41:17: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR! 41 | p(obj->Get(Nan::New("p").ToLocalChecked())->Uint32Value()) {}
npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_async.h: In member function ‘virtual void ScryptAsyncWorker::HandleErrorCallback()’:
npm ERR! ../src/node-boilerplate/inc/scrypt_async.h:53:21: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 53 | callback->Call(1, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! ../../nan/nan.h:1746:3: note: declared here
npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const {
npm ERR! | ^~~~
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h: In constructor ‘ScryptParamsAsyncWorker::ScryptParamsAsyncWorker(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:35:35: error: no matching function for call to ‘v8::Value::NumberValue()’
npm ERR! 35 | maxtime(info[0]->NumberValue()),
npm ERR! | ~~~~~~~~~~~~~~~~~~~~^~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3099:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’
npm ERR! 3099 | V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
npm ERR! | ^~~~~~~~~~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3099:39: note: candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:36:38: error: no matching function for call to ‘v8::Value::NumberValue()’
npm ERR! 36 | maxmemfrac(info[1]->NumberValue()),
npm ERR! | ~~~~~~~~~~~~~~~~~~~~^~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3099:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’
npm ERR! 3099 | V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
npm ERR! | ^~~~~~~~~~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3099:39: note: candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:37:35: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR! 37 | maxmem(info[2]->IntegerValue()),
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3101:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR! 3101 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR! | ^~~~~~~~~~~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3101:40: note: candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
npm ERR! ../src/node-boilerplate/inc/scrypt_params_async.h:38:38: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR! 38 | osfreemem(info[3]->IntegerValue())
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3101:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR! 3101 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR! | ^~~~~~~~~~~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3101:40: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc: In member function ‘virtual void ScryptParamsAsyncWorker::HandleOKCallback()’:
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:23:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR! 23 | obj->Set(Nan::New("N").ToLocalChecked(), Nan::New<Integer>(logN));
npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/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! 3961 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/cp/.cache/node-gyp/16.18.0/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! 3964 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:24:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR! 24 | obj->Set(Nan::New("r").ToLocalChecked(), Nan::New<Integer>(r));
npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/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! 3961 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/cp/.cache/node-gyp/16.18.0/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! 3964 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:25:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR! 25 | obj->Set(Nan::New("p").ToLocalChecked(), Nan::New<Integer>(p));
npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /home/cp/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! /home/cp/.cache/node-gyp/16.18.0/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! 3961 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/cp/.cache/node-gyp/16.18.0/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! 3964 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/cp/.cache/node-gyp/16.18.0/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/node-boilerplate/scrypt_params_async.cc:32:17: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 32 | callback->Call(2, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
npm ERR! In file included from ../src/node-boilerplate/scrypt_params_async.cc:1:
npm ERR! ../../nan/nan.h:1746:3: note: declared here
npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const {
npm ERR! | ^~~~
npm ERR! make: *** [scrypt.target.mk:133: Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.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 (/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.15.0-56-generic
npm ERR! gyp ERR! command "/home/cp/.nvm/versions/node/v16.18.0/bin/node" "/home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/cp/.nvm/versions/node/v16.18.0/lib/node_modules/pocketh/node_modules/scrypt
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/cp/.npm/_logs/2023-01-05T08_00_22_512Z-debug-0.log