decentralized-identity / ion-cli

ION Command Line Interface to make working with the ION network and using ION DIDs easy peasy lemon squeezy
Apache License 2.0
11 stars 3 forks source link

npm i fails #15

Open rufnexyo opened 2 years ago

rufnexyo commented 2 years ago

the same error happens with https://github.com/decentralized-identity/ion-tools but not with https://github.com/decentralized-identity/ion-sdk

macOS Monterey MacBook Pro (13-inch, M1, 2020)

➜  ion-cli git:(main) npm -v
8.1.4
➜  ion-cli git:(main) node -v
v17.2.0
➜  ion git clone git@github.com:decentralized-identity/ion-cli.git
Cloning into 'ion-cli'...
remote: Enumerating objects: 172, done.
remote: Counting objects: 100% (172/172), done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 172 (delta 93), reused 115 (delta 47), pack-reused 0
Receiving objects: 100% (172/172), 178.65 KiB | 957.00 KiB/s, done.
Resolving deltas: 100% (93/93), done.
➜  ion cd ion-cli
➜  ion-cli git:(main) npm install -g @decentralized-identity/ion-cli
npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated node-webcrypto-ossl@2.1.3: node-webcrypto-ossl has been deprecated. This module was created in 2015 because at the time the Node team did not feel the need to have two crypto interfaces and they already had one before WebCrypto was defined
npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/@decentralized-identity/ion-cli/node_modules/node-webcrypto-ossl
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/nodessl/src/main.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.0
npm ERR! gyp info using node@17.2.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.7 found at "/opt/homebrew/opt/python@3.9/bin/python3.9"
npm ERR! gyp info spawn /opt/homebrew/opt/python@3.9/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/opt/homebrew/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   '/opt/homebrew/lib/node_modules/@decentralized-identity/ion-cli/node_modules/node-webcrypto-ossl/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/francesco/Library/Caches/node-gyp/17.2.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/francesco/Library/Caches/node-gyp/17.2.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/francesco/Library/Caches/node-gyp/17.2.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/opt/homebrew/lib/node_modules/@decentralized-identity/ion-cli/node_modules/node-webcrypto-ossl',
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! Apple clang version 13.0.0 (clang-1300.0.29.30)
npm ERR! Target: arm64-apple-darwin21.2.0
npm ERR! Thread model: posix
npm ERR! InstalledDir: /Library/Developer/CommandLineTools/usr/bin
npm ERR!  "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple arm64-apple-macosx10.7.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-llvm-bc -flto -flto-unit -disable-free -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -fno-strict-return -fno-rounding-math -munwind-tables -faligned-alloc-unavailable -target-sdk-version=12.1 -fvisibility-inlines-hidden-static-local-var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +fp-armv8 -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +dotprod -target-feature +fp16fml -target-feature +ras -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-arguments-and-returns -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=lldb -target-linker-version 711 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0 -dependency-file ./Release/.deps/Release/obj.target/nodessl/src/main.o.d.raw -skip-unused-modulemap-deps -MT Release/obj.target/nodessl/src/main.o -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D NODE_GYP_MODULE_NAME=nodessl -D USING_UV_SHARED=1 -D USING_V8_SHARED=1 -D V8_DEPRECATION_WARNINGS=1 -D V8_DEPRECATION_WARNINGS -D V8_IMMINENT_DEPRECATION_WARNINGS -D _GLIBCXX_USE_CXX11_ABI=1 -D _DARWIN_USE_64_BIT_INODE=1 -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D BUILDING_NODE_EXTENSION -I /Users/francesco/Library/Caches/node-gyp/17.2.0/include/node -I /Users/francesco/Library/Caches/node-gyp/17.2.0/src -I /Users/francesco/Library/Caches/node-gyp/17.2.0/deps/openssl/config -I /Users/francesco/Library/Caches/node-gyp/17.2.0/deps/openssl/openssl/include -I /Users/francesco/Library/Caches/node-gyp/17.2.0/deps/uv/include -I /Users/francesco/Library/Caches/node-gyp/17.2.0/deps/zlib -I /Users/francesco/Library/Caches/node-gyp/17.2.0/deps/v8/include -I ../../nan -I/usr/local/include -stdlib=libc++ -stdlib=libc++ -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1 -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -internal-externc-isystem /Library/Developer/CommandLineTools/usr/include -O3 -Wall -Wendif-labels -W -Wno-unused-parameter -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-elaborated-enum-base -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /opt/homebrew/lib/node_modules/@decentralized-identity/ion-cli/node_modules/node-webcrypto-ossl/build -ferror-limit 19 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fno-rtti -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fno-cxx-modules -fcxx-exceptions -fexceptions -fmax-type-align=16 -fcommon -vectorize-loops -vectorize-slp -clang-vendor-feature=+nullptrToBoolConversion -clang-vendor-feature=+messageToSelfInClassMethodIdReturnType -clang-vendor-feature=+disableInferNewAvailabilityFromInit -clang-vendor-feature=+disableNeonImmediateRangeCheck -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation -fno-odr-hash-protocols -clang-vendor-feature=+revert09abecef7bbf -mllvm -disable-aligned-alloc-awareness=1 -mllvm -enable-dse-memoryssa=0 -o Release/obj.target/nodessl/src/main.o -x c++ ../src/main.cpp
npm ERR! clang -cc1 version 13.0.0 (clang-1300.0.29.30) default target arm64-apple-darwin21.2.0
npm ERR! ignoring nonexistent directory "/Users/francesco/Library/Caches/node-gyp/17.2.0/src"
npm ERR! ignoring nonexistent directory "/Users/francesco/Library/Caches/node-gyp/17.2.0/deps/openssl/config"
npm ERR! ignoring nonexistent directory "/Users/francesco/Library/Caches/node-gyp/17.2.0/deps/openssl/openssl/include"
npm ERR! ignoring nonexistent directory "/Users/francesco/Library/Caches/node-gyp/17.2.0/deps/uv/include"
npm ERR! ignoring nonexistent directory "/Users/francesco/Library/Caches/node-gyp/17.2.0/deps/zlib"
npm ERR! ignoring nonexistent directory "/Users/francesco/Library/Caches/node-gyp/17.2.0/deps/v8/include"
npm ERR! ignoring nonexistent directory "/usr/local/include"
npm ERR! ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include"
npm ERR! ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/Frameworks"
npm ERR! #include "..." search starts here:
npm ERR! #include <...> search starts here:
npm ERR!  /Users/francesco/Library/Caches/node-gyp/17.2.0/include/node
npm ERR!  ../../nan
npm ERR!  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1
npm ERR!  /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include
npm ERR!  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
npm ERR!  /Library/Developer/CommandLineTools/usr/include
npm ERR!  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
npm ERR! End of search list.
npm ERR! In file included from ../src/main.cpp:1:
npm ERR! In file included from ../src/node/common.h:4:
npm ERR! In file included from ../src/node/../core/common.h:11:
npm ERR! In file included from ../src/node/../core/scoped_ssl.h:6:
npm ERR! In file included from /Users/francesco/Library/Caches/node-gyp/17.2.0/include/node/openssl/aes.h:14:
npm ERR! /Users/francesco/Library/Caches/node-gyp/17.2.0/include/node/openssl/macros.h:155:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
npm ERR! #  error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
npm ERR!    ^
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/nodessl/src/main.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 (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 21.2.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/17.2.0/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /opt/homebrew/lib/node_modules/@decentralized-identity/ion-cli/node_modules/node-webcrypto-ossl
npm ERR! gyp ERR! node -v v17.2.0
npm ERR! gyp ERR! node-gyp -v v8.4.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/francesco/.npm/_logs/2021-12-21T08_36_50_779Z-debug.log
scrummitch commented 2 years ago

Fixed this in https://github.com/decentralized-identity/ion-tools/pull/38

Will require a new version