Home > Mobile >  Unable to install firebase in react using npm install firebase / yarn add firebase
Unable to install firebase in react using npm install firebase / yarn add firebase

Time:08-26

iam trying to install firebase depedencies and it still stuck even after 30 minutes

i've been stuck like 30 minutes

can anyone help me?

CodePudding user response:

  1. you just need firebase on client side npm i firebase

  2. Install globally or locally as devDependency firebase-cli to deploy, connect, login to your firebase-project

npm i -g firebase-tools or npm i -d firebase-tools

  1. if you use any cloud-function

npm i firebase-admin firebase-functions

CodePudding user response:

It looks like npm cache was corrupted ,but as npm cache clean --force did not work,deleting _cacache directory in C:\Users\User\AppData\Roaming\npm-cache solved my problem.

Then npm install worked just fine.

  • Related