3

Hi I'm unable to install the firebase tools via command prompt using admin mode and I am getting the error bellow:

F:\rnd\MyChat>npm install  firebase

> grpc@1.8.4 install F:\rnd\MyChat\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.8.4/node-v57-win32-x64-unknown.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.8.4 and node@8.9.3 (node-v57 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 PythonFinder.failNoPython (C:\Users\ani\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.8.4 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.8.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Madpop
  • 729
  • 4
  • 24
  • 61

4 Answers4

3

you are trying to install firebase javascript library not the firebase-tools the node module for firebase tools is firebase-tools and firebase 3.16 version and along with that in the local folder npm install node-gyp

you should run

npm install -g firebase-tools
Madpop
  • 729
  • 4
  • 24
  • 61
Ali Faris
  • 17,754
  • 10
  • 45
  • 70
  • im trying to install both firebase tools and firebase also and after entering the your command im getting these errors npm WARN deprecated node-uuid@1.4.8: Use uuid module instead & > grpc@1.8.4 install F:\rnd\MyChat\node_modules\grpc > node-pre-gyp install --fallback-to-build --library=static_library – Madpop Jan 22 '18 at 17:32
  • try to run this `npm install -g node-pre-gyp` what you get ? – Ali Faris Jan 22 '18 at 17:38
  • Installed your command below is the response im getting + node-pre-gyp@0.6.39 added 113 packages in 66.884s – Madpop Jan 23 '18 at 04:33
  • npm WARN deprecated node-uuid@1.4.8: Use uuid module instead C:\Users\ani\AppData\Roaming\npm\firebase -> C:\Users\ani\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase > grpc@1.4.1 install C:\Users\ani\AppData\Roaming\npm\node_modules\firebase-tools\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.4.1/node-v57-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for grpc@1.4.1 and node@8.9.4 (node-v57 ABI – Madpop Jan 23 '18 at 05:25
0

This is something that may work, try doing the following.

npm i -g firebase-tools
0

Finally my issue has been resolved by following these below steps

firstly i installed npm install node-gyp in my local folder and downgraded my firebase-tools version from 3.17 to 3.16 and Mainly i disabled my Anti Virus below is the reference link for that

https://github.com/grpc/grpc-node/issues/121

Madpop
  • 729
  • 4
  • 24
  • 61
0

If you are using a newer version of nodejs try uninstalling and using node-v10.15.3

https://nodejs.org/download/release/v10.15.3/

jmbmage
  • 2,487
  • 3
  • 27
  • 44