mapbox / mapbox/node-pre-gyp

cannot install firebase

Open
#381 36 comments 20 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.2k
Forks
271
Avg merge
23h 40m
Merged PRs (30d)
2

Description

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!
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. (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](https://github.com/mapbox/node-pre-gyp/files/2023706/2018-05-21T18_44_21_908Z-debug.log)

maybe i dont get something?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached debug log and the reported node-pre-gyp install command, then inspect the involved package.json and the stated Node.js and Windows versions. Reproduce the Firebase installation failure if the environment is available; done means identifying a confirmed cause and documenting or implementing a verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, javascript, node.js, react-native
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.