etheratom
etheratom copied to clipboard
Can't install on Big Sur M1 Mac
I've tried to install this from within Atom (install button) as well as from the command line. I can't get it to install. See below for the log that is generated.
M1-MacBook-Pro _logs % apm -v apm 2.6.2 npm 6.14.13 node 12.14.1 x64 atom 1.58.0 python 2.7.16 git 2.30.1
etheratom % apm install Installing modules ✗
[email protected] preinstall /Users//atomether/etheratom/node_modules/scrypt node node-scrypt-preinstall.js
[email protected] install /Users//atomether/etheratom/node_modules/bufferutil node-gyp-build
[email protected] install /Users//atomether/etheratom/node_modules/nodent-runtime node build.js
Built /Users//atomether/etheratom/node_modules/nodent-runtime/dist/index.js
[email protected] install /Users//atomether/etheratom/node_modules/remix-simulator/node_modules/keccak npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used."
[email protected] rebuild /Users//atomether/etheratom/node_modules/remix-simulator/node_modules/keccak node-gyp rebuild
CXX(target) Release/obj.target/keccak/src/addon.o Keccak bindings compilation fail. Pure JS implementation will be used.
[email protected] install /Users//atomether/etheratom/node_modules/remix-tests/node_modules/keccak npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used."
[email protected] rebuild /Users//atomether/etheratom/node_modules/remix-tests/node_modules/keccak node-gyp rebuild
CXX(target) Release/obj.target/keccak/src/addon.o Keccak bindings compilation fail. Pure JS implementation will be used.
[email protected] install /Users//atomether/etheratom/node_modules/scrypt node-gyp rebuild
SOLINK_MODULE(target) 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 LIBTOOL-STATIC 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 LIBTOOL-STATIC Release/scrypt_lib.a CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_common.o CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
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]: Critical issue with babel minification failure
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated @types/[email protected]: This is a stub types definition. web3 provides its own type definitions, so you do not need this installed.
npm WARN deprecated @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/vm. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/vm. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/tx. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/vm. Please update.
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 use Util.Account class found on package ethereumjs-util@^7.0.6 https://github.com/ethereumjs/ethereumjs-util/releases/tag/v7.0.6
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/common. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/blockchain. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/common. Please update.
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
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]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/blockchain. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/ethash. Please update.
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
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]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please update to the latest object-keys
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated [email protected]: this library 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 WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
../src/addon.cc:37:47: error: too few arguments to function call, single argument 'context' was not specified
unsigned int rate = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:38:51: error: too few arguments to function call, single argument 'context' was not specified
unsigned int capacity = info[1]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:56:48: error: too few arguments to function call, single argument 'context' was not specified
unsigned char bits = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:64:43: error: too few arguments to function call, single argument 'context' was not specified
size_t length = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:75:82: error: too few arguments to function call, single argument 'context' was not specified
KeccakWrapper* to = Nan::ObjectWrap::Unwrap<KeccakWrapper>(info[0]->ToObject());
~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2816:44: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
5 errors generated.
make: *** [Release/obj.target/keccak/src/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 20.6.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users//atomether/etheratom/node_modules/remix-simulator/node_modules/keccak
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users//.atom/.apm/_logs/2021-09-20T19_04_01_640Z-debug.log
../src/addon.cc:37:47: error: too few arguments to function call, single argument 'context' was not specified
unsigned int rate = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:38:51: error: too few arguments to function call, single argument 'context' was not specified
unsigned int capacity = info[1]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:56:48: error: too few arguments to function call, single argument 'context' was not specified
unsigned char bits = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:64:43: error: too few arguments to function call, single argument 'context' was not specified
size_t length = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2857:40: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
../src/addon.cc:75:82: error: too few arguments to function call, single argument 'context' was not specified
KeccakWrapper* to = Nan::ObjectWrap::Unwrap<KeccakWrapper>(info[0]->ToObject());
~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2816:44: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
5 errors generated.
make: *** [Release/obj.target/keccak/src/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 20.6.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users//atomether/etheratom/node_modules/remix-tests/node_modules/keccak
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in: npm ERR! /Users//.atom/.apm/_logs/2021-09-20T19_04_04_882Z-debug.log ../src/node-boilerplate/scrypt_common.cc:98:12: warning: address of stack memory associated with local variable 'scrypt_err_description' returned [-Wreturn-stack-address] return scrypt_err_description.c_str(); ^~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28: In file included from ../src/node-boilerplate/inc/scrypt_async.h:28: ../src/node-boilerplate/inc/scrypt_common.h:39:14: error: no matching member function for call to 'Get' N(obj->Get(Nan::New("N").ToLocalChecked())->Uint32Value()), ~~~~~^~~ /Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3711:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ /Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3714:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28: In file included from ../src/node-boilerplate/inc/scrypt_async.h:28: ../src/node-boilerplate/inc/scrypt_common.h:40:14: error: no matching member function for call to 'Get' r(obj->Get(Nan::New("r").ToLocalChecked())->Uint32Value()), ~~~~~^~~ /Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3711:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ /Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3714:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28: In file included from ../src/node-boilerplate/inc/scrypt_async.h:28: ../src/node-boilerplate/inc/scrypt_common.h:41:14: error: no matching member function for call to 'Get' p(obj->Get(Nan::New("p").ToLocalChecked())->Uint32Value()) {} ~~~~~^~~ /Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3711:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ /Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3714:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28: ../src/node-boilerplate/inc/scrypt_async.h:53:17: warning: 'Call' is deprecated [-Wdeprecated-declarations] callback->Call(1, argv); ^ ../../nan/nan.h:1743:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Localv8::Value ^ ../../nan/nan.h:108:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
^
In file included from ../src/node-boilerplate/scrypt_params_async.cc:4:
../src/node-boilerplate/inc/scrypt_params_async.h:35:36: error: too few arguments to function call, single argument 'context' was not specified
maxtime(info[0]->NumberValue()),
~~~~~~~~~~~~~~~~~~~~ ^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:2855:39: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3664:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3667:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^
../src/node-boilerplate/scrypt_params_async.cc:24:8: error: no matching member function for call to 'Set'
obj->Set(Nan::New("r").ToLocalChecked(), Nan::New<Integer>(r));
~~~~~^~~
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3664:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3667:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^
../src/node-boilerplate/scrypt_params_async.cc:25:8: error: no matching member function for call to 'Set'
obj->Set(Nan::New("p").ToLocalChecked(), Nan::New<Integer>(p));
~~~~~^~~
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3664:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^
/Users//.atom/.node-gyp/Library/Caches/node-gyp/9.4.4/include/node/v8.h:3667:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^
../src/node-boilerplate/scrypt_params_async.cc:32:13: warning: 'Call' is deprecated [-Wdeprecated-declarations]
callback->Call(2, argv);
^
../../nan/nan.h:1743:3: note: 'Call' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Local<v8::Value>
^
../../nan/nan.h:108:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
^
2 warnings and 10 errors generated.
make: *** [Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 20.6.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users//atomether/etheratom/node_modules/scrypt
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN [email protected] requires a peer of react@^16.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of yo-yoify@latest but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rollup@>=0.56.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rollup@>=0.60.0 <2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] license should be a valid SPDX license expression
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! /Users//.atom/.apm/_logs/2021-09-20T19_04_11_246Z-debug.log
Having similar issues on Catalina