anon-aadhaar
anon-aadhaar copied to clipboard
couldn't install `@anon-aadhaar/react` package
What is the bug?
couldn't install @anon-aadhaar/react package:
$ pnpm add @anon-aadhaar/react
WARN 4 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected]
Packages: +372
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 372, reused 372, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/grpc: Running install script, failed in 5.1s
.../.pnpm/[email protected]/node_modules/grpc install$ node-pre-gyp install --fallback-to-build --library=static_library
│ node-pre-gyp info it worked if it ends with ok
│ node-pre-gyp info using [email protected]
│ node-pre-gyp info using [email protected] | darwin | arm64
│ node-pre-gyp WARN Using needle for node-pre-gyp https download
│ node-pre-gyp info check checked for "/Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/[email protected]/node_modules/grpc/src/node/extensio…
│ node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.21.1/node-v115-darwin-arm64-unknown.tar.gz
│ node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.21.1/node-v115-darwin-arm64-unknown.tar.gz
│ node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.21.1/node-v115-darwin-arm64-unknown.tar.gz
│ node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp)
│ node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.21.1/node-v115-darwin-arm64-unknown.tar.gz
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | darwin | arm64
│ gyp info ok
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | darwin | arm64
│ gyp info find Python using Python version 3.11.7 found at "/opt/homebrew/opt/[email protected]/bin/python3.11"
│ gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.11
│ gyp info spawn args [
│ gyp info spawn args '/Users/daehyun/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'make',
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/[email protected]/node_modules/grpc/build/config.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/daehyun/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/daehyun/Library/Caches/node-gyp/20.11.0/include/node/common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=/Users/daehyun/Library/Caches/node-gyp/20.11.0',
│ gyp info spawn args '-Dnode_gyp_dir=/Users/daehyun/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/pnpm/dist/node_modules/node-gyp',
│ gyp info spawn args '-Dnode_lib_file=/Users/daehyun/Library/Caches/node-gyp/20.11.0/<(target_arch)/node.lib',
│ gyp info spawn args '-Dmodule_root_dir=/Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/[email protected]/node_modules/grpc',
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info ok
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | darwin | arm64
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack_builder.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_trace.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz_registry.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/connected_channel.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker_registry.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/status_util.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression_args.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression_internal.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/message_compress.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_gzip.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_identity.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats.o
│ CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats_data.o
│ ../deps/grpc/src/core/lib/debug/stats_data.cc:284:5: error: suspicious concatenation of string literals in an array initialization; did you mean to separate…
│ "requested the incoming call",
│ ^
│ ../deps/grpc/src/core/lib/debug/stats_data.cc:283:5: note: place parentheses around the string literal to silence warning
│ "How many completion queues were checked looking for a CQ that had "
│ ^
│ 1 error generated.
│ make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats_data.o] Error 1
│ gyp ERR! build error
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.onExit (/Users/daehyun/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:…
│ gyp ERR! stack at ChildProcess.emit (node:events:518:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
│ gyp ERR! System Darwin 22.5.0
│ gyp ERR! command "/Users/daehyun/Library/pnpm/nodejs/20.11.0/bin/node" "/Users/daehyun/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/pnpm/dist/node_m…
│ gyp ERR! cwd /Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/[email protected]/node_modules/grpc
│ gyp ERR! node -v v20.11.0
│ gyp ERR! node-gyp -v v9.4.1
│ gyp ERR! not ok
│ node-pre-gyp ERR! build error
│ node-pre-gyp ERR! stack Error: Failed to execute '/Users/daehyun/Library/pnpm/nodejs/20.11.0/bin/node /Users/daehyun/Library/pnpm/global/5/.pnpm/[email protected]…
│ node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/[email protected]/node_modules/gr…
│ node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28)
│ node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
│ node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
│ node-pre-gyp ERR! System Darwin 22.5.0
│ node-pre-gyp ERR! command "/Users/daehyun/Library/pnpm/nodejs/20.11.0/bin/node" "/Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/grp…
│ node-pre-gyp ERR! cwd /Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/[email protected]/node_modules/grpc
│ node-pre-gyp ERR! node -v v20.11.0
│ node-pre-gyp ERR! node-pre-gyp -v v0.13.0
│ node-pre-gyp ERR! not ok
│ Failed to execute '/Users/daehyun/Library/pnpm/nodejs/20.11.0/bin/node /Users/daehyun/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/pnpm/dist/node_mo…
└─ Failed in 5.1s at /Users/daehyun/workspace/vd/anon-aadhhar-integration/node_modules/.pnpm/[email protected]/node_modules/grpc
ELIFECYCLE Command failed with exit code 1.
How can it be reproduced? (optional)
mkdir prj
cd prj
pnpm install
pnpm add @anon-aadhaar/react
Additional context (optional)
environment: machine: M1 Air OS: macOS Ventura 13.4.1 Node.js: v20.11.0 pnpm: 8.14.1
- I tried to install it using yarn 3.8.0 and it was successful:
yarn add @anon-aadhaar/react
➤ YN0000: ┌ Resolution step
➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
➤ YN0013: │ snarkjs@https://github.com/sampritipanda/snarkjs.git#commit=fef81fc51d17a734637555c6edbd585ecda02d9e can't be found in the cache and will be fetched
➤ YN0032: │ blake-hash@npm:2.0.0: Implicit dependencies on node-gyp are discouraged
➤ YN0032: │ node-addon-api@npm:3.2.1: Implicit dependencies on node-gyp are discouraged
➤ YN0060: │ @anon-aadhaar/react@npm:1.0.2 [02987] provides react-dom (p7d6ed) with version 18.2.0, which doesn't satisfy what react-qr-reader requests
➤ YN0002: │ @zk-email/helpers@npm:3.1.3 doesn't provide @pulumi/kubernetes (p25061), requested by pki
➤ YN0002: │ @zk-email/helpers@npm:3.1.3 doesn't provide @pulumi/pulumi (p58e47), requested by pki
➤ YN0002: │ anon-aadhhar-integration@workspace:. doesn't provide react (p48b80), requested by @anon-aadhaar/react
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 13s 924ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ wrap-ansi@npm:7.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ wrap-ansi@npm:8.1.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ ws@npm:7.4.6 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ ws@npm:8.5.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yallist@npm:4.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 8s 608ms
➤ YN0000: ┌ Link step
➤ YN0007: │ blake-hash@npm:2.0.0 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 5s 130ms
➤ YN0000: Done with warnings in 27s 685ms
Hey @baumstern
This seems to be linked to other dependencies of anon-aadhaar, that are trying to run a script while installing the package. This process is working fine with yarn and npm.
Maybe we can keep this issue as "pnpm support", but it will not be tackled soon, as it might depend on other dependencies and it's not a priority on our side.