npm install grpc is failing on ubuntu 16.04.

727 views
Skip to first unread message

sanm...@gmail.com

unread,
May 10, 2018, 6:21:53 AM5/10/18
to grpc.io
Hi guys,

I'm trying to install grpc on ubuntu 16.04. But it is failing with below error. I have installed libgrpc-dev and libgrpc0. Not sure what is the issue.

vagrant@fabric:~/hyperledger/fabric-samples/fabcar$ npm install grpc

> gr...@1.11.3 install /home/vagrant/hyperledger/fabric-samples/fabcar/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Linux 4.4.0-121-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/vagrant/hyperledger/fabric-samples/fabcar/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/vagrant/hyperledger/fabric-samples/fabcar/node_modules/grpc
node-pre-gyp ERR! node -v v8.9.1
node-pre-gyp ERR! node-pre-gyp -v v0.10.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!     <https://github.com/mapbox/node-pre-gyp/issues>
npm WARN fab...@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! gr...@1.11.3 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 6
npm ERR!
npm ERR! Failed at the gr...@1.11.3 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/vagrant/.npm/_logs/2018-05-10T09_58_11_489Z-debug.log

Michael Lumish

unread,
May 16, 2018, 2:04:56 PM5/16/18
to sanm...@gmail.com, grpc.io
This is a known bug in node-pre-gyp: https://github.com/mapbox/node-pre-gyp/issues/367. Currently there is no given solution.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/790b02d2-fc0b-4508-97e6-e84f7a153dda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Lumish

unread,
Jul 30, 2018, 4:15:52 PM7/30/18
to sanm...@gmail.com, grpc.io
The linked bug has now been fixed, and gr...@1.13.1 depends on the version with the fix, so you should no longer see that failure.
Reply all
Reply to author
Forward
0 new messages