Cannot npm install grpc-tools on arm
See original GitHub issueProblem description
I cannot install grpc-tools@1.9.0
on armv7l
.
Reproduction steps
mkdir grpc-tools-test && cd grpc-tools-test && npm init -y && npm i -S grpc-tools
Error:
mkdir grpc-tools-test && cd grpc-tools-test && npm init -y && npm i -S grpc-tools
Wrote to /home/pi/dev/git/grpc-tools-test/package.json:
{
"name": "grpc-tools-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
> grpc-tools@1.9.0 install /home/pi/dev/git/grpc-tools-test/node_modules/grpc-tools
> node-pre-gyp install
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc-tools/v1.9.0/linux-arm.tar.gz
node-pre-gyp ERR! stack at PassThrough.<anonymous> (/home/pi/dev/git/grpc-tools-test/node_modules/node-pre-gyp/lib/install.js:149:27)
node-pre-gyp ERR! stack at PassThrough.emit (events.js:194:15)
node-pre-gyp ERR! stack at ClientRequest.<anonymous> (/home/pi/dev/git/grpc-tools-test/node_modules/needle/lib/needle.js:500:9)
node-pre-gyp ERR! stack at Object.onceWrapper (events.js:277:13)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:189:13)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:442:20)
node-pre-gyp ERR! stack at TLSSocket.emit (events.js:189:13)
node-pre-gyp ERR! stack at addChunk (_stream_readable.js:284:12)
node-pre-gyp ERR! System Linux 4.19.118-v7l+
node-pre-gyp ERR! command "/home/pi/.config/nvm/versions/node/v10.15.3/bin/node" "/home/pi/dev/git/grpc-tools-test/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /home/pi/dev/git/grpc-tools-test/node_modules/grpc-tools
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc-tools/v1.9.0/linux-arm.tar.gz
npm WARN grpc-tools-test@1.0.0 No description
npm WARN grpc-tools-test@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc-tools@1.9.0 install: `node-pre-gyp install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc-tools@1.9.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-07-09T15_14_56_961Z-debug.log
pi@raspberrypi:~/dev/git/grpc-tools-test $
Environment
- OS name, version and architecture: [e.g. Linux Ubuntu 18.04 amd64]:
Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
- Node version [e.g. 8.10.0]:
10.15.3
- Node installation method [e.g. nvm]:
nvm
- If applicable, compiler version [e.g. clang 3.8.0-2ubuntu4] ?
- Package name and version [e.g. gRPC@1.12.0] ?
Additional context
I would like to build a gRPC capable electron app for armhf
and arm64
. I already switched from grpc
to @grpc/grpc-js
as there are no pre-builds for electron for ARM. But I cannot install grpc-tools
to generate my JS/TS API as part of the build step, as I cannot pull grpc-tools
in. Is there a recommended way to work around this? Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Unable to install grpc-tools via npm or yarn on mac m1 chip?
It is problem with package grpc-tools. One of solution for today is using Rosetta. Recommend good tutorial. Share.
Read more >grpc-tools - npm
Start using grpc-tools in your project by running `npm i grpc-tools`. There are 128 other projects in the npm registry using grpc-tools.
Read more >shirakiya on Twitter: "M1 Mac での grpc-tools がnpm install ...
Problem description Can't install grpc-tools on arm architecture (raspberry pi) because of missing precompiled binaries. node-pre-gyp ERR!
Read more >Native Node Modules | Electron
For example, to install the standalone electron-rebuild tool and then rebuild modules with it via the command line: npm install --save-dev electron-rebuild
Read more >M1 Mac で grpc-tools を npm install できない問題の回避策 - Qiita
このエラーは node-pre-gyp が grpc-tools の arm64 向けコンパイル済みバイナリをダウンロードしようとして失敗することに起因する。 arm64 向けバイナリ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
grpc-js is all JavaScript, so it should work fine on all platforms, including ARM.
You can also just
npm install @grpc/grpc-js
.