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:firebasetest-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
Answers
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 usefirebase deploy
to deploy your application on Firebase.I have the same problem even when I did the firebase serve and deploy steps. I need Firebase to work asap please help me! I already tried to login with another owner email but nothing worked yet.