question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install firebase fails due to grpc

See original GitHub issue

I’m trying to install firebase to my Angular Project. I have tried with several versions of Node.js but no luck so far.

I get an error similar to that of below:

grpc@1.7.2 install E:\Development\Angular\RecipeBookProject\node_modules\grpc node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.2/node-v48-win32-x64-unknown.tar.gz node-pre-gyp ERR! Pre-built binaries not found for grpc@1.7.2 and node@6.12.1 (node-v48 ABI, unknown) (falling back to source compile with node-gyp) gyp ERR! configure error gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable. gyp ERR! stack at Object.failNoPython (E:\Development\Angular\RecipeBookProject\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack at Object.<anonymous> (E:\Development\Angular\RecipeBookProject\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at E:\Development\Angular\RecipeBookProject\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command “C:\Program Files\nodejs\node.exe” “E:\Development\Angular\RecipeBookProject\node_modules\node-gyp\bin\node-gyp.js” “configure” “–fallback-to-build” “–library=static_library” “–module=E:\Development\Angular\RecipeBookProject\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown\grpc_node.node” “–module_name=grpc_node” “–module_path=E:\Development\Angular\RecipeBookProject\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown” gyp ERR! cwd E:\Development\Angular\RecipeBookProject\node_modules\grpc gyp ERR! node -v v6.12.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute ‘C:\Program Files\nodejs\node.exe E:\Development\Angular\RecipeBookProject\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=E:\Development\Angular\RecipeBookProject\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=E:\Development\Angular\RecipeBookProject\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (E:\Development\Angular\RecipeBookProject\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:920:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) node-pre-gyp ERR! System Windows_NT 6.1.7601 node-pre-gyp ERR! command “C:\Program Files\nodejs\node.exe” “E:\Development\Angular\RecipeBookProject\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp” “install” “–fallback-to-build” “–library=static_library” node-pre-gyp ERR! cwd E:\Development\Angular\RecipeBookProject\node_modules\grpc node-pre-gyp ERR! node -v v6.12.1 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok Failed to execute ‘C:\Program Files\nodejs\node.exe E:\Development\Angular\RecipeBookProject\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=E:\Development\Angular\RecipeBookProject\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=E:\Development\Angular\RecipeBookProject\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown’ (1) recipe-book-project@0.0.0 E:\Development\Angular\RecipeBookProject `-- (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}) npm ERR! Windows_NT 6.1.7601 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “firebase” npm ERR! node v6.12.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! grpc@1.7.2 install: node-pre-gyp install --fallback-to-build --library=static_library npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the grpc@1.7.2 install script ‘node-pre-gyp install --fallback-to-build --library=static_library’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the grpc package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build --library=static_library npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs grpc npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls grpc npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! E:\Development\Angular\RecipeBookProject\npm-debug.log npm ERR! code 1

I can post the contents of npm-debug.log if required.

I’m not sure if this is the correct place to post something like this, but google has come up short and the feedback from npm suggests to do this.

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:22
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

26reactions
ygongdevcommented, Jan 16, 2018

I faced a similar problem. For me, the problem seemed to be my antivirus (Kaspersky). Once I disabled it, I was able to install firebase.

13reactions
alchatticommented, May 7, 2018

Same issue, Windows 10 (17134.1), NodeJs (10.0.0), NPM (5.6.0), Yarn (1.6.0) [Stand Alone] Tried all the above suggestions for both npm & yarn, tried going to NodeJS 8LTS and disabling the antivirus (Kaspersky) without any success

The only solution worked for me is to install firebase@4.6.2 or firebase@4.12.1 , no need for anything else. For me the issue is with 4.13.X

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install firebase error with grpc · Issue #596 - GitHub
Problem description I've tried to install firebase to react project. Have tried different version of node, installed different versions of ...
Read more >
Grpc error while installing Firebase for React - Stack Overflow
expo install firebase. and this was failing for me. I noticed that the issue was related to my package-lock.json where node-pre-gyp was ...
Read more >
grpc - npm
Run npm install --build-from-source . Note: On Windows, this might fail due to nodejs issue #4932 in which case, you will see something...
Read more >
Firebase JavaScript SDK Release Notes - Google
Fixed timer issues in the App Check SDK that caused the token to fail to refresh ... Updated node-fetch dependency due to a...
Read more >
Firebase install is failing (need help) - Ionic Framework
npm install firebase firebaseui @angular/fire firebaseui-angular. Errors: CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found