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.

cannot install firebase

See original GitHub issue

if i try to install firebase via npm install firebase --save it shows me

`C:\Projects\reactnative\auth>npm install firebase --save

grpc@1.11.3 install C:\Projects\reactnative\auth\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\auth\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\auth\node_modules\grpc node-pre-gyp ERR! node -v v9.10.0 node-pre-gyp ERR! node-pre-gyp -v v0.10.0 node-pre-gyp ERR! This is a bug in node-pre-gy. 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 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-21T18_44_21_908Z-debug.log`

and if i try to node-pre-gyp install --fallback-to-build --library=static_library it gives me C:\Projects\reactnative\auth>node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@0.10.0 node-pre-gyp info using node@9.10.0 | win32 | x64 node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: auth package.json is not node-pre-gyp ready: node-pre-gyp ERR! stack package.json must declare these properties: node-pre-gyp ERR! stack binary.module_name node-pre-gyp ERR! stack binary.module_path node-pre-gyp ERR! stack binary.host node-pre-gyp ERR! stack at validate_config (C:\Users\unoeg\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\util\versioning.js:220:15) node-pre-gyp ERR! stack at Object.module.exports.evaluate (C:\Users\unoeg\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\util\versioning.js:279:5) node-pre-gyp ERR! stack at install (C:\Users\unoeg\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\install.js:182:31) node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (C:\Users\unoeg\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\node-pre-gyp.js:52:37) node-pre-gyp ERR! stack at run (C:\Users\unoeg\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp:82:30) node-pre-gyp ERR! stack at Object.<anonymous> (C:\Users\unoeg\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp:134:1) node-pre-gyp ERR! stack at Module._compile (module.js:649:30) node-pre-gyp ERR! stack at Object.Module._extensions…js (module.js:660:10) node-pre-gyp ERR! stack at Module.load (module.js:561:32) node-pre-gyp ERR! stack at tryModuleLoad (module.js:501:12) node-pre-gyp ERR! System Windows_NT 10.0.17134 node-pre-gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\unoeg\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp” “install” “–fallback-to-build” “–library=static_library” node-pre-gyp ERR! cwd C:\Projects\reactnative\auth node-pre-gyp ERR! node -v v9.10.0 node-pre-gyp ERR! node-pre-gyp -v v0.10.0 node-pre-gyp ERR! not ok auth package.json is not node-pre-gyp ready: package.json must declare these properties: binary.module_name binary.module_path binary.host 2018-05-21T18_44_21_908Z-debug.log

maybe i dont get something?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:20
  • Comments:36 (4 by maintainers)

github_iconTop GitHub Comments

14reactions
EgorKazachenkocommented, Nov 26, 2018

Worked for me npm install firebase --force .

5reactions
alexlee-devcommented, Jan 31, 2019

@EgorKazachenko 's solution is the one that works for me.

I’m on Windows 10. Node v8.11.3 NPM v5.6.0

Steps to install everything successfully:

  1. Remove node_modules and package-lock.json if they exist. You want to start fresh.
  2. Run npm install.
  3. After install of everything else without an error, run npm install firebase --force.
  4. You will still get node-pre-gyp errors and warnings, but at the end you should see
+ firebase@x.x.x
added x packages in xs
  1. Success!

Possible reasons for issues may include being behind a company proxy and/or firewall.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not install Firebase CLI using npm - Stack Overflow
3 Answers 3 · Try repeatedly to uninstall and reinstall. Sometimes the problem can clear itself up. · Check the specific permissions on...
Read more >
Unable to install firebase using npm install firebase · Issue #403
Steps to produce - 1. npm install firebase Only one step process. Node version tried- 8.9.3 and 6.3 versions Npm version tried -...
Read more >
firebase: command not found error [Solved] | bobbyhadz
To solve the error "firebase: command not found", install the firebase cli package globally by running npm install -g firebase-tools and restart your...
Read more >
@firebase/app - npm
Start using @firebase/app in your project by running `npm i @firebase/app`. There are 115 other projects in ... Install. npm i @firebase/app ...
Read more >
Install Firebase CLI on Mac, Windows or Linux - YouTube
How to install Firebase command line interface! Note - you must have Node.js and npm installed.Full Firebase playlist: ...
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