hyperledger-archives / aries-toolbox

Hyperledger Aries
https://wiki.hyperledger.org/display/aries
Apache License 2.0
43 stars 45 forks source link

Unable to install aries-toolbox on mac m1 #321

Open miroslav-inc opened 1 year ago

miroslav-inc commented 1 year ago

Summary

Error occurs when running yarn install

error /Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build && rimraf build Arguments: Directory: /Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native Output: gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#' gyp ERR! stack at createConfigFile (/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/node-gyp/lib/configure.js:117:21) gyp ERR! stack at /Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/node-gyp/lib/configure.js:84:9 gyp ERR! stack at FSReqCallback.oncomplete (node:fs:186:23) gyp ERR! System Darwin 20.6.0 gyp ERR! command "/opt/homebrew/Cellar/node/20.1.0/bin/node" "/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native/binding-v6.0.1-n-api-darwin-arm64/lzma_native.node" "--module_name=lzma_native" "--module_path=/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native/binding-v6.0.1-n-api-darwin-arm64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115" gyp ERR! cwd /Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native gyp ERR! node -v v20.1.0 gyp ERR! node-gyp -v v7.1.2 gyp ERR! Node-gyp failed to build your package. gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author. node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/opt/homebrew/Cellar/node/20.1.0/bin/node /Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native/binding-v6.0.1-n-api-darwin-arm64/lzma_native.node --module_name=lzma_native --module_path=/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native/binding-v6.0.1-n-api-darwin-arm64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (7) node-pre-gyp ERR! stack at ChildProcess. (/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (node:events:511:28) node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16) node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5) node-pre-gyp ERR! System Darwin 20.6.0 node-pre-gyp ERR! command "/opt/homebrew/Cellar/node/20.1.0/bin/node" "/Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /Users/miroslav/incode/projects/ssi-sandbox/aries-toolbox/node_modules/lzma-native node-pre-gyp ERR! node -v v20.1.0 node-pre-gyp ERR! node-pre-gyp -v v0.11.0 node-pre-gyp ERR! not ok

Definition (optional)