node-pre-gyp: cannot install firebase
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?
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 20
- Comments: 36 (4 by maintainers)
Worked for me npm install firebase --force .
@EgorKazachenko 's solution is the one that works for me.
I’m on Windows 10. Node
v8.11.3NPMv5.6.0Steps to install everything successfully:
node_modulesandpackage-lock.jsonif they exist. You want to start fresh.npm install.npm install firebase --force.node-pre-gyperrors and warnings, but at the end you should seePossible reasons for issues may include being behind a company proxy and/or firewall.
I just downgraded npm from 12.0.0 to the LTS version (10.15.3 as of today), and it worked! 😁
Note that we’ve published grpc 1.16.1 with the latest fixes from node-pre-gyp and node 11 support.
Well, I had the same problem. I deleted firebase from package.json and run
npm installwithout firebase. Then I installed firebase separately without --force. And it helped.Node 11 support has been added in grpc 1.16.1. Either downgrade your current node version, wait for firebase to pin to grpc 1.16.1, or forcibly upgrade the grpc dependency using package locks.
Additionally, firebase isn’t yet fully tested under node 11.
Looks like you attempted to run
node-pre-gyp install --fallback-to-build --library=static_libraryfrom within theC:\Projects\reactnative\authdirectory (it would explain the “auth package.json is not node-pre-gyp ready” error message).What happens if you try the same command but from within the
C:\Projects\reactnative\auth\node_modules\grpcdirectory?I was able to fix it by simple turn off Kaspersky Antivirus 😃)
Maybe it’s help some1 else.
Same error. Goal: simply running
npm i firebasewithout error. However this simple command invokesnode-pre-gypwhich fails with the following monstruosity:The log file doesn’t provide any useful additional info.
404 Error while trying to download stuff, but the error is caught. There is a python syntax error (seriously??), but running
npm config set python <path to python 2.7>; npm i firebasethrows even more errors.Does anyone have a possible fix?
I was able to solve this problem by installing grpc globally first and then downgrading node to 9.9.0. I’m on a mac, but hopefully this helps someone!
I have exact same problem
Hi! npm install firebase@4.6.1 --save <-- this command helped me to install firebase