angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Terminal freeze when running `ng add @angular/fire` on selecting Firebase app step

Open ksom opened this issue 4 years ago • 19 comments

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 ** output ng add @angular:fire

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.

ksom avatar Jan 15 '22 22:01 ksom

Have the same issue, do you have a solution yet?

vhmeijering avatar Jan 16 '22 12:01 vhmeijering

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 ?

ksom avatar Jan 16 '22 16:01 ksom

Have the same issue, do you have a solution yet?

Are you on Mac m1 ?

Yes, M1 Max

vhmeijering avatar Jan 16 '22 16:01 vhmeijering

I'm too on mac m1. I don't think it is related but, maybe.

ksom avatar Jan 16 '22 16:01 ksom

I was facing that problem too, but when I downgraded firebase-tools from v10 to v9, it was resolved.

$ firebase --version
> 9.23.3

adzunyan avatar Jan 17 '22 05:01 adzunyan

$ npm uninstall -g firebase-tools
$ npm install -g [email protected]

https://github.com/angular/angularfire/blob/master/src/schematics/firebaseTools.ts#L45

shinoshu avatar Jan 17 '22 08:01 shinoshu

$ 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 :)

vhmeijering avatar Jan 17 '22 09:01 vhmeijering

Downgrading solved the issue, thank you!

brunodiascultural avatar Jan 17 '22 21:01 brunodiascultural

$ npm uninstall -g firebase-tools
$ npm install -g [email protected]

https://github.com/angular/angularfire/blob/master/src/schematics/firebaseTools.ts#L45

Me funciono

jadl7721 avatar Jan 22 '22 01:01 jadl7721

Downgrading helped, thanks!

abhishek1234321 avatar Jan 24 '22 16:01 abhishek1234321

Same problem here with Mac M1. Is anyone not on M1 having the same problem?

ribalnasr avatar Jan 27 '22 10:01 ribalnasr

Same issue. The fix solves it! Thanks!

MrMic avatar Jan 27 '22 11:01 MrMic

Same problem with Mac also. Solved with "npm install -g [email protected]"

yasmineDoghri6 avatar Jan 27 '22 14:01 yasmineDoghri6

Same problem, on a Mac but not an M1 chip.

peavers avatar Feb 01 '22 22:02 peavers

[email protected] freezes. [email protected] works.

tama3bb avatar Feb 02 '22 07:02 tama3bb

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.

mraible avatar Feb 09 '22 16:02 mraible

FWIW, the latest version of firebase-tools (v10.1.5) doesn't work either.

mraible avatar Feb 09 '22 16:02 mraible

I ran into the same issue on a M1 Mac. Manual downgrade is not working for me because of other dependencies. Any update?

MrMarteng avatar Feb 10 '22 06:02 MrMarteng

Cutting 7.2.1 with the fix now

jamesdaniels avatar Feb 10 '22 20:02 jamesdaniels