Madpop
Madpop

Reputation: 725

unable to install firebase tools in windows

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

> [email protected] 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 [email protected] and [email protected] (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! [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Upvotes: 3

Views: 2309

Answers (4)

jmbmage
jmbmage

Reputation: 2547

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/

Upvotes: 0

Ali Faris
Ali Faris

Reputation: 18592

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

Upvotes: 3

Madpop
Madpop

Reputation: 725

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

Upvotes: 0

Nathaniel Fredericks
Nathaniel Fredericks

Reputation: 207

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

npm i -g firebase-tools

Upvotes: 0

Related Questions