nodejs-assistant
nodejs-assistant copied to clipboard
nodejs-assistant can't install on M1 Macs
Seems that grpc doesn't have any old binaries for m1 mac. see https://github.com/grpc/grpc-node/issues/1880
Recommended fix is moving to @grpc/grpc-js
. I made an attempt at this but ran into an error -- will open a PR shortly, but creating this issue first for backlinking.
(Appreciate the library; I was able to get v0.8.0 working on my Windows desktop last night. Sending text commands to Google is very nice 😎 )
Environment details
- OS: MacOS 12.0.1
- Node.js version: v17.4.0
- npm version: 8.3.1
-
nodejs-assistant
version: v0.8.0
Steps to reproduce
- On an M1 mac, try
npm install -g nodejs-assistant
- It will reach this point in compilation & hang a moment
$ npm install -g nodejs-assistant
npm WARN deprecated [email protected]: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
⸨##################⸩ ⠸ reify:grpc: WARN deprecated [email protected]: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
- Observe large and fun error output. Some pertinent lines copied below
754 error code 1
755 error path /opt/homebrew/lib/node_modules/nodejs-assistant/node_modules/grpc
756 error command failed
757 error command sh -c node-pre-gyp install --fallback-to-build --library=static_library
758 error CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
758 error Failed to execute '/opt/homebrew/Cellar/node/17.4.0/bin/node /opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/opt/homebrew/lib/node_modules/nodejs-assistant/node_modules/grpc/src/node/extension_binary/node-v102-darwin-arm64-unknown/grpc_node.node --module_name=grpc_node --module_path=/opt/homebrew/lib/node_modules/nodejs-assistant/node_modules/grpc/src/node/extension_binary/node-v102-darwin-arm64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)
759 error node-pre-gyp info it worked if it ends with ok
759 error node-pre-gyp info using [email protected]
759 error node-pre-gyp info using [email protected] | darwin | arm64
759 error node-pre-gyp info check checked for "/opt/homebrew/lib/node_modules/nodejs-assistant/node_modules/grpc/src/node/extension_binary/node-v102-darwin-arm64-unknown/grpc_node.node" (not found)
759 error node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v102-darwin-arm64-unknown.tar.gz
759 error node-pre-gyp ERR! install response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v102-darwin-arm64-unknown.tar.gz
759 error node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v102 ABI, unknown) (falling back to source compile with node-gyp)
759 error node-pre-gyp WARN Hit error response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v102-darwin-arm64-unknown.tar.gz
Running into this issue now, did you ever find a workaround?