firebase/firebase-tools

"firebase login" doesn't work with Git-Bash

kilna opened this issue ยท 9 comments

kilna commented

Git-Bash is incorrectly identified as non-interactive mode by the firebase command line tool. As a result, "firebase login" works from cmd.exe, but not from git-bash.exe.

You can run with --interactive to force interactive mode

On Mon, May 23, 2016, 9:00 PM Kilna notifications@github.com wrote:

Git-Bash is incorrectly identified as non-interactive mode by the firebase
command line tool. As a result, "firebase login" works from cmd.exe, but
not from git-bash.exe.

โ€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#149

kilna commented

Thanks for the work-around. Is the root cause necessitating the work-around solvable?

I'm not sure that it is -- we rely on Node's process to tell us whether or not a shell is interactive. Frankly I'm looking forward to bash coming to Windows this summer, as existing Windows shells have some really inconsistent and hard-to-support behavior.

kilna commented

The following nodejs issue seems to describe the root cause in excruciating detail:

nodejs/node#3006

๐Ÿ˜จ yeah, cygwin is scary

and firebase init doesn't work neither with git-bash for windows

@fpilee it works for me :/ maybe you environment variables en you windows machine aren't set properly

You can run with --interactive to force interactive mode

On Mon, May 23, 2016, 9:00 PM Kilna notifications@github.com wrote:

Git-Bash is incorrectly identified as non-interactive mode by the firebase
command line tool. As a result, "firebase login" works from cmd.exe, but
not from git-bash.exe.

โ€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#149

Brilliant I love you man

Login is ok by forcing interactive, thanks, but next step is firebase init => cf. #700