Terminal freeze when running `ng add @angular/fire` on selecting Firebase app step
Version info
Angular:13.1.1
Firebase:9.6.3
AngularFire:7.2.0
Node: 14 & 16 & 17
How to reproduce these conditions
Steps to set up and reproduce
Running ng add @angular/fire
Debug output
Node.js version v17.3.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 (3190 bytes)
✔ Packages installed successfully.
? What features would you like to setup? ng deploy -- hosting
Using firebase-tools version 10.1.0
? Which Firebase account would you like to use? [email protected]
✔ Preparing the list of your Firebase projects
? Please select a project: (Use arrow keys or type to search)
[CREATE NEW PROJECT]
❯ MyProjectName
** Screenshots **

Expected behavior
Continue the installation process.
Actual behavior
- Selection of features works
- Selection of Firebase account works
- Selection of project freeze.
I cannot move between options with arrows nor press enter nor ctrl+c to end process. The only thing I can do is exiting the terminal window. I tried with Iterm, and native Mac os Terminal. I tried with fish, zsh and bash shells. Always same behavior.
[EDIT]
Notice that with firebase init this step works perfectly: I can use the arrow keys to navigate and select an entry.
Have the same issue, do you have a solution yet?
Have the same issue, do you have a solution yet?
Not, I'm trying to install it through firebase cli and add @angular/fire with npm but I don't have a working setup at the moment.
Are you on mac m1 ?
Have the same issue, do you have a solution yet?
Are you on Mac m1 ?
Yes, M1 Max
I'm too on mac m1. I don't think it is related but, maybe.
I was facing that problem too, but when I downgraded firebase-tools from v10 to v9, it was resolved.
$ firebase --version
> 9.23.3
$ npm uninstall -g firebase-tools
$ npm install -g [email protected]
https://github.com/angular/angularfire/blob/master/src/schematics/firebaseTools.ts#L45
$ npm uninstall -g firebase-tools $ npm install -g [email protected]https://github.com/angular/angularfire/blob/master/src/schematics/firebaseTools.ts#L45
Downgrading solved the issue, thank you :)
Downgrading solved the issue, thank you!
$ npm uninstall -g firebase-tools $ npm install -g [email protected]https://github.com/angular/angularfire/blob/master/src/schematics/firebaseTools.ts#L45
Me funciono
Downgrading helped, thanks!
Same problem here with Mac M1. Is anyone not on M1 having the same problem?
Same issue. The fix solves it! Thanks!
Same problem with Mac also. Solved with "npm install -g [email protected]"
Same problem, on a Mac but not an M1 chip.
[email protected] freezes. [email protected] works.
I can confirm this still happens today with the latest version of Angular (13.2.2). I'm on an Intel Mac.
Processor: 2.4 GHz 8-Core Intel Core i9
npm i -g [email protected] solves the problem.
FWIW, the latest version of firebase-tools (v10.1.5) doesn't work either.
I ran into the same issue on a M1 Mac. Manual downgrade is not working for me because of other dependencies. Any update?
Cutting 7.2.1 with the fix now