firebase-tools: firebase init doesn't run, leaves frozen terminal.

Version info

3.9.2

Steps to reproduce

  • Run firebase init
  • Select any option

Expected behavior

I should then be able to select a Firebase project

Actual behavior

My entire terminal freezes. Can’t use arrow keys to select, can’t Ctrl + C to cancel, there’s nothing the terminal window responds to anymore.

Logs

β–Ά firebase init --debug
[2017-08-12T13:37:10.262Z] ----------------------------------------------------------------------
[2017-08-12T13:37:10.265Z] Command:       /usr/local/Cellar/node/8.1.0/bin/node /usr/local/bin/firebase init --debug
[2017-08-12T13:37:10.265Z] CLI Version:   3.9.2
[2017-08-12T13:37:10.265Z] Platform:      darwin
[2017-08-12T13:37:10.265Z] Node Version:  v8.1.0
[2017-08-12T13:37:10.266Z] Time:          Sat Aug 12 2017 15:37:10 GMT+0200 (CEST)
[2017-08-12T13:37:10.266Z] ----------------------------------------------------------------------

[2017-08-12T13:37:10.273Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[2017-08-12T13:37:10.273Z] > authorizing via signed-in user

     πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯ πŸ”₯πŸ”₯πŸ”₯πŸ”₯ πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯ πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯     πŸ”₯πŸ”₯πŸ”₯     πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯
     πŸ”₯πŸ”₯        πŸ”₯πŸ”₯  πŸ”₯πŸ”₯     πŸ”₯πŸ”₯ πŸ”₯πŸ”₯       πŸ”₯πŸ”₯     πŸ”₯πŸ”₯  πŸ”₯πŸ”₯   πŸ”₯πŸ”₯  πŸ”₯πŸ”₯       πŸ”₯πŸ”₯
     πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯    πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯   πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯
     πŸ”₯πŸ”₯        πŸ”₯πŸ”₯  πŸ”₯πŸ”₯    πŸ”₯πŸ”₯  πŸ”₯πŸ”₯       πŸ”₯πŸ”₯     πŸ”₯πŸ”₯ πŸ”₯πŸ”₯     πŸ”₯πŸ”₯       πŸ”₯πŸ”₯ πŸ”₯πŸ”₯
     πŸ”₯πŸ”₯       πŸ”₯πŸ”₯πŸ”₯πŸ”₯ πŸ”₯πŸ”₯     πŸ”₯πŸ”₯ πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯ πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯     πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯  πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯

You're about to initialize a Firebase project in this directory:

  /Users/erikbooij/Dropbox/Projects

? Which Firebase CLI features do you want to setup for this folder? Press Space to select features, then Enter to confirm your choices. Functions: Configure and deploy C
loud Functions

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

[2017-08-12T13:37:18.198Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects
 Sat Aug 12 2017 15:37:18 GMT+0200 (CEST)
[2017-08-12T13:37:19.099Z] <<< HTTP RESPONSE 200 server=nginx, date=Sat, 12 Aug 2017 13:37:19 GMT, content-type=application/json; charset=utf-8, content-length=203, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store
? Select a default Firebase project for this directory: (Use arrow keys)
❯ [don't setup a default project]
  Name of project I have already set up
  [create a new project]

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (3 by maintainers)

Most upvoted comments

Temporary solution

Older versions of firebase-tools work fine. Until this problem is fixed, try: npm remove -g firebase-tools && npm install -g firebase-tools@6.3.0

More info here (tab Versions): https://www.npmjs.com/package/firebase-tools

As soon as the problem is fixed, you can upgrade to the newest version. If someone wants to try, maybe even never versions (>6.3.0) are β€œbug-less”. I only tried with 6.8.0 and 6.3.0, but the bug was still present in 6.8.0.

Temporary solution

Older versions of firebase-tools work fine. Until this problem is fixed, try: npm remove -g firebase-tools && npm install -g firebase-tools@6.3.0

More info here (tab Versions): https://www.npmjs.com/package/firebase-tools

As soon as the problem is fixed, you can upgrade to the newest version. If someone wants to try, maybe even never versions (>6.3.0) are β€œbug-less”. I only tried with 6.8.0 and 6.3.0, but the bug was still present in 6.8.0.

Working with 6.3.0 Thanks a lot!

Was having the same issue, just ran npm remove -g firebase-tools && npm install -g firebase-tools@6.3.0 and all was solved, then once installed upgraded to the latest version again.

@vladmarton not working with 6.3.0

Try older versions then, or try versions that are between 6.8.0 and 6.3.0, maybe one of them will work.