angular firebase configuration Already using account

953 Views Asked by At

Trying to configure firebase in my angular app. Created a new firebase project in the console and want to create a new angular project using firestore in the new firebase project.

However, get error "Already using account [email protected] for this project directory." see log below. The local project directory is newly created and contains only this test project. Why do I get this error and how can I work around it?

C:\firebase\test-firebase>ng add @angular/fire Node.js version v21.1.0 detected. Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/. Skipping installation: Package already installed UPDATE package.json (1075 bytes) √ Packages installed successfully. ? What features would you like to setup? ng deploy -- hosting, Firestore Using firebase-tools version 13.0.0 ? Which Firebase account would you like to use? (Use arrow keys) [Login in with another account]

[email protected] (node:28068) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userla? Which Firebase account would you like to use? [email protected] Already using account [email protected] for this project directory.

2

There are 2 best solutions below

0
Jonatas On

I had the same problem. The way that I can resolve this was using Firebase commands.

Try to use first firebase serve to check if your project is served correctly on the browser and then use firebase deploy to deploy your application on Firebase.

3
Andres Bonomo On

I had the same problem. I have angular 16 Firebase-tools version 13 gives me that error firebase -V you can see the version I installed 12.9.1 and it worked. npm i -g [email protected] But you have to install and then generate the angular project again