Firebase-tools: Unable to move down or up the list when using the Git Bash

Created on 11 Mar 2018  路  9Comments  路  Source: firebase/firebase-tools

Version info

Firebase version: 3.17.6 (Latest as of Mar 9, 2018)
Git Bash version: 2.15.1.2

Platform Information

Windows 10 Home
Version 1709
OS Build 16299.248

Steps to reproduce

  1. Fire up my Git Bash on Windows machine.
  2. cd to my firebase repo location in my machine.
  3. run firebase init
  4. It asked if I am ready to proceed, (I put Y and it moved to the next question)
  5. It asked "Which Firebase CLI features do you want to setup for this folder? Please..."
  6. I then tried to move down the list using my down arrow key but nothing happened. (the cursor does not move)
  7. I changed back to built-in command prompt from Windows and do exactly the same thing and everything worked!

Expected behavior

I should be able to move down or up the list using the arrow key in Git Bash while selecting an option in a list for the command firebase init

Actual behavior

When I try to move down the list using the arrow key. The cursor does not move. This only happens in Git Bash, the built-in command prompt works fine.

Here is the log:
Note: no log were produced when down or up arrow key isn't working. However, this is what I got when I ran the firebase init --debug

chenb@LAPTOP-18B5PM7L MINGW64 ~/Downloads/poanchen.firebase.com
$ firebase init --debug
[2018-03-11T20:51:40.225Z] ----------------------------------------------------------------------
[2018-03-11T20:51:40.228Z] Command:       C:\Program Files\nodejs\node.exe C:\Users\chenb\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase init --debug
[2018-03-11T20:51:40.228Z] CLI Version:   3.17.6
[2018-03-11T20:51:40.228Z] Platform:      win32
[2018-03-11T20:51:40.229Z] Node Version:  v8.9.4
[2018-03-11T20:51:40.229Z] Time:          Sun Mar 11 2018 13:51:40 GMT-0700 (Pacific Daylight Time)
[2018-03-11T20:51:40.229Z] ----------------------------------------------------------------------

[2018-03-11T20:51:40.245Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[2018-03-11T20:51:40.246Z] > authorizing via signed-in user

Thought might be helpful
capture8

cleanup bug

Most helpful comment

yep got the same problem.

All 9 comments

yep got the same problem.

Interesting. Worth investigating. Thank you for the report.

Currently I have the same issue, but it affects Windows cmd and Powershell. Tested on node 8.16 with firebase-tools 7.0.0

@berhalak and @triay0 there seem to be some issues with firebase init today, please track #1420 for more information.

An update has been published for CLI version 7.0.1, and that probably includes the fix on that issue. Update the CLI to the latest version by running npm install --global firebase-tools@latest ... should work.

Still happening in 7.3.2 in Git Bash on Windows

Try with CMD in windows, it's works fine :)

From my screenshot, it does work in CMD in the first place. However, I would imagine that there are some people also use git bash as their terminal choice. Would be nice that it would also work for them.

Was this page helpful?
0 / 5 - 0 ratings