grpc: Firrebase install problem

What version of gRPC and what language are you using?

1.11.0 Javascript

What operating system (Linux, Windows, …) and version?

System Windows_NT 10.0.17134 64x

What runtime / compiler are you using (e.g. python version or version of gcc)

python 2.7

What did you do?

created new project npm init tried to install firebase, via npm install firebase --save

What did you expect to see?

firebase installed ^^

What did you see instead?

C:\Projects\reactnative\test>npm install

> grpc@1.11.3 install C:\Projects\reactnative\test\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 Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Projects\\reactnative\\test\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Projects\reactnative\test\node_modules\grpc
node-pre-gyp ERR! node -v v8.11.2
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 test@1.0.0 No description
npm WARN test@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! grpc@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 grpc@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!     C:\Users\unoeg\AppData\Roaming\npm-cache\_logs\2018-05-22T09_08_40_439Z-debug.log
 

2018-05-22T09_08_40_439Z-debug.log

Anything else we should know about your project / environment?

then i tried to install grpc separatly

C:\Projects\reactnative\test>npm install grpc --save

> grpc@1.11.3 install C:\Projects\reactnative\test\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 Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Projects\\reactnative\\test\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Projects\reactnative\test\node_modules\grpc
node-pre-gyp ERR! node -v v8.11.2
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 test@1.0.0 No description
npm WARN test@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! grpc@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 grpc@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!     C:\Users\unoeg\AppData\Roaming\npm-cache\_logs\2018-05-22T09_13_16_433Z-debug.log

2018-05-22T09_13_16_433Z-debug.log

tried to install via yarn and building grpc from source

C:\Projects\reactnative\test>node -v
v8.11.2

C:\Projects\reactnative\test>python -V
Python 2.7.15

C:\Projects\reactnative\test>npm -v
6.1.0-next.0

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 19 (7 by maintainers)

Most upvoted comments

Did you try npm install firebase --force I had the same problem and then I remembered that there was a force command. I still get the errors about node-pre-gyp, but firebase module was still installed. I understand it’s kind of bad to do it this way, but if you really need firebase this is one way to get it. lol.

npm install firebase --force worked for me ^^. Thanks guys!

Hello, I had the same problem, I disabled my antivirus (kaspersky) and it ran like a charm. Hope it can help.

As @murgatroid99 said, this isn’t a problem with gRPC itself, with a link to the actual problem, so this is kind of the wrong location to discuss it.