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

Build failed when node-pre-gyp use needle module #880

Closed
niklaus0823 opened this issue May 22, 2019 · 2 comments
Closed

Build failed when node-pre-gyp use needle module #880

niklaus0823 opened this issue May 22, 2019 · 2 comments

Comments

@niklaus0823
Copy link

niklaus0823 commented May 22, 2019

Problem description

Build failed when node-pre-gyp use needle module

Add dependencies, and it can be fixed。

...
"dependencies": {
    "node-pre-gyp": "^0.12.0",
    "request": "^2.88.0"
},
...

"dependencies": {
"node-pre-gyp": "^0.12.0"
},

Reproduction steps

npm install grpc-tools -g

Environment

  • Darwin 18.6.0
  • Node v11.10.1
  • Npm v6.9

Additional context

npm install grpc-tools -g
/usr/local/bin/grpc_tools_node_protoc -> /usr/local/lib/node_modules/grpc-tools/bin/protoc.js
/usr/local/bin/grpc_tools_node_protoc_plugin -> /usr/local/lib/node_modules/grpc-tools/bin/protoc_plugin.js

> [email protected] install /usr/local/lib/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: There was a fatal problem while downloading/extracting the tarball
node-pre-gyp ERR! stack     at Unpack.afterTarball (/usr/local/lib/node_modules/grpc-tools/node_modules/node-pre-gyp/lib/install.js:102:33)
node-pre-gyp ERR! stack     at Unpack.emit (events.js:197:13)
node-pre-gyp ERR! stack     at Unpack.[maybeClose] (/usr/local/lib/node_modules/grpc-tools/node_modules/tar/lib/unpack.js:171:12)
node-pre-gyp ERR! stack     at Unpack.opt.ondone._ (/usr/local/lib/node_modules/grpc-tools/node_modules/tar/lib/unpack.js:89:23)
node-pre-gyp ERR! stack     at Unpack.emit (events.js:197:13)
node-pre-gyp ERR! stack     at Unpack.[emit] (/usr/local/lib/node_modules/grpc-tools/node_modules/tar/lib/parse.js:230:12)
node-pre-gyp ERR! stack     at Unpack.[maybeEnd] (/usr/local/lib/node_modules/grpc-tools/node_modules/tar/lib/parse.js:346:17)
node-pre-gyp ERR! stack     at Unpack.[consumeChunk] (/usr/local/lib/node_modules/grpc-tools/node_modules/tar/lib/parse.js:354:21)
node-pre-gyp ERR! stack     at Unpack.write (/usr/local/lib/node_modules/grpc-tools/node_modules/tar/lib/parse.js:310:25)
node-pre-gyp ERR! stack     at Unpack.end (/usr/local/lib/node_modules/grpc-tools/node_modules/tar/lib/parse.js:419:14)
node-pre-gyp ERR! System Darwin 18.6.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/11.10.1/bin/node" "/usr/local/lib/node_modules/grpc-tools/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/grpc-tools
node-pre-gyp ERR! node -v v11.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok 
There was a fatal problem while downloading/extracting the tarball
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
···
@nicolasnoble
Copy link
Member

This is a node-pre-gyp issue, not a grpc issue.

@niklaus0823
Copy link
Author

ok, thanks

@lock lock bot locked as resolved and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants