Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodejs-assistant can't install on M1 Macs #30

Open
Quezion opened this issue Jan 21, 2022 · 1 comment
Open

nodejs-assistant can't install on M1 Macs #30

Quezion opened this issue Jan 21, 2022 · 1 comment

Comments

@Quezion
Copy link

Quezion commented Jan 21, 2022

Seems that grpc doesn't have any old binaries for m1 mac. see grpc/grpc-node#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

  1. On an M1 mac, try npm install -g nodejs-assistant
  2. 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.
  1. 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 
@swarn2099
Copy link

Running into this issue now, did you ever find a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants