grpc / grpc/grpc-node

Getting an error when I try to run npm install -g grpc-tools under Node example for grpc_tools_node_protoc

Open
#1,441 4 comments 0 reactions 1 assignee Claimed by @murgatroid99 View on GitHub
package: grpc-tools
Dominant language
TypeScript
Stars
4.8k
Forks
716
Avg merge
2d 3h
Merged PRs (30d)
10

Description

### What operating system (Linux, Windows,...) and version?

`Linux host01 4.4.0-157-generic grpc/grpc#185-Ubuntu SMP Tue Jul 23 09:17:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`

Node version: `v8.16.0`

npm version `6.4.1`

When trying to follow the instructions described here: https://github.com/grpc/grpc/tree/master/examples/node/static_codegen

Under a Katacoda virtual machine found here: https://katacoda.com/courses/ubuntu/playground

When I run `npm install -g grpc-tools`

I get the following error:

```
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Linux 4.4.0-157-generic
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/grpc-tools/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /usr/lib/node_modules/grpc-tools
node-pre-gyp ERR! node -v v8.16.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! grpc-tools@1.9.0 install: `node-pre-gyp install`
npm ERR! Exit status 6
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! /root/.npm/_logs/2020-05-25T03_45_53_114Z-debug.log
```

Thanks in advance for any help.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.