Firebase-tools: Cannot choose an app on windows

Created on 19 Oct 2015  路  30Comments  路  Source: firebase/firebase-tools

On firebase init, I cannot select an existing app from the terminal, even if it displays my existing apps (select in the means of using arrow keys)

bug

Most helpful comment

Try using windows command prompt, I was trying to use the git terminal but it wasn't working, so then I tried using the command prompt (windows terminal), navigated to my project directory and initialized in there, and it worked. It also let me select the options, whereas in the git terminal I wasn't able to select anything with keys or pressing the space bar.

All 30 comments

How are you attempting to run the command? Through the command line, cygwin, PowerShell? I assume you were able to login to the tools just fine?

@drtriumph im running the command via command line. yep i was be able to login just fine.

For now I think the -f <app_name> option will allow you to proceed, and we'll try reproducing this. What version of windows / node / npm are you running?

hi @drtriumph, sorry for the late response. currently using windows 10, node 4.1.1, npm 2.14.4. tried to go legacy mode from the command terminal and unfortunately I still encountered the same.

Same issue here. Win 10, node 4.2.1

firebase init -f <app_name> worked though

:+1: same on Win 10, Node 4.1.1 in both Command Prompt and PowerShell

Hey guys, same issue on Windows 10 Node 5.0.0 in Command Prompt and Powershell including Powershell ISE as Administrator. Can't kill the current task either. Have to exit out of Powershell entirely.

EDIT/UPDATE
This also doesn't work on Node 5.1.0 latest update, however, if you have Github for windows installed and installed Git Bash along with it, it works perfectly on Git Bash. Link here below and hope this helps someone for the time being: https://git-for-windows.github.io/

This should be working in firebase init now, though the underlying Node bug still persists.

May I ask what the underlying Node bug is? I'm seeing the same issue on Win7, Node v6.2.2, Firebase 3.0.3. Also the workaround firebase init -f <app_name> doen't work for me as the -f option is unknown.

The -f option would not solve the issue also, since you are unable to use arrow keys on the questoin "What Firebase CLI features do you want to setup for this folder?".

This issue happens to my Gitbash sometimes. Sometimes, the arrow keys work, sometimes they do not. Any workarounds?

Try using windows command prompt, I was trying to use the git terminal but it wasn't working, so then I tried using the command prompt (windows terminal), navigated to my project directory and initialized in there, and it worked. It also let me select the options, whereas in the git terminal I wasn't able to select anything with keys or pressing the space bar.

Same issue.
Windows 10, Node.Js 8.1.0.
Tried command line and git bash, can't choose anything while trying to init project. Not by space or by arrow keys.

Same issue.
Windows 10, Node.Js 8.1.0.
Tried command line and git bash, can't choose anything while trying to init project. Not by space or by arrow keys.

I have the same issue

Node.js LTS Version: v6.11.0 works for me

Same issue with Win 10 16215, VS '17 Preview 2, and Node 8.1.0 (x64)

Update on issue - i think problem in Node 8.x.x, I have same issue on NodeJs 8.1.0, OS Windos 10 and Linux, different command lines. After i downgrade NodeJs to version 7.8.0 issue gone and navigation begin to work by keys(arrows and space).

Yes it does appear to be a Node 8 issue. I reproduced this (on Linux), and will investigate a fix. Filed https://github.com/firebase/firebase-tools/issues/370 to track this, since it's a separate issue than this original one.

i was having the same problem (while trying to use gitBash), i switched over to comand prompt and the arrows keys work there

It's working for me in node version v8.1.2

Iam using cmd on windows and the arrow works, but when using git the arrow doesnt move a bit
npm version 5.5.1 and node 8.9.1

Selecting features during firebase init via space does not work with Git Bash. No problems when using cmd.exe.

  • Windows 7 (x64)
  • npm: 5.5.1
  • node: 9.2.0
  • git bash: 2.15.0

i m using cmd in windows 8 but still not working.

@sakshi-samdani Can you provide info on the version of firebase-tools and Node you are using?

Have this issue as well with git bash
Windows 10
Node v9.4.0
Npm v5.6.0
Git 2.11.0
Latest firebase tools

Reproducing with macos
NPM v5.6.0
Node v8.1.0

It strangely gets stuck on project selection upon using firebase init and gets stuck on language selection upon using firebase init functions

It's working with me in cmd win7 or win10

Reproducing with macos
NPM v5.6.0
Node v8.1.0

It strangely gets stuck on project selection upon using firebase init and gets stuck on language selection upon using firebase init functions

the
same for me node v10.15.3 npm v6.4.1

Same for me
NPM v 6.9.0
node v10.15.0

EDIT:
https://github.com/firebase/firebase-tools/issues/426#issuecomment-503949030
Works well

@oksiweb and @triay0 please track issue #1420 for updates about a possible issue today.

Was this page helpful?
0 / 5 - 0 ratings