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
punycodemodule 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.
I had the same problem. The way that I can resolve this was using Firebase commands.
Try to use first
firebase serveto check if your project is served correctly on the browser and then usefirebase deployto deploy your application on Firebase.