Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot login #77

Closed
tems99 opened this issue Oct 19, 2015 · 23 comments
Closed

cannot login #77

tems99 opened this issue Oct 19, 2015 · 23 comments

Comments

@tems99
Copy link

tems99 commented Oct 19, 2015

When I try to use Firebase Login through CLI,
it says
Error: Cannot run login in non-interactive mode. Pass --token instead.

This is a newly installed PC. In my old PC, I could use firebase CLI.
In my newly installed PC, after installing firebase-tools, I tried to login using the command

firebase login

But instead got the error above.

@cbraynor
Copy link
Contributor

How are you attempting to run the command? Through the command line, cygwin, PowerShell?

@mbleigh
Copy link
Contributor

mbleigh commented Oct 19, 2015

@tems99 we addressed this in #80. You should be able to login by upgrading to the latest version (2.0.2) of firebase-tools and running:

firebase login --interactive

Please let me know if it doesn't work.

@smhammadshakil
Copy link

firebase login:ci --interactive

this is the solution

@bblanke
Copy link

bblanke commented Nov 19, 2017

Also using:
firebase login --no-localhost
worked for me

@DiegoFSFlor
Copy link

to me :)

@ghost
Copy link

ghost commented Dec 30, 2018

firebase login --interactive

working!! thnks!

@Kattenelvis
Copy link

Not a single one of these worked for me. It still says "An unexpected error has occured" right after Paste authorization code here"

@lusamdebonfils
Copy link

firebase login --interactive
Works perfectly. Thanks!!

@AhamedR
Copy link

AhamedR commented Feb 22, 2020

In windows
if you are using Git Bash try using CMD.

@mrgab0
Copy link

mrgab0 commented Mar 6, 2020

from cygwin windows 7 sp1. same trouble,
instead of use cygwin use cmd firebase login

solved!

@islam-Ellithy
Copy link

In windows
You can use terminal of vscode ,it works like a sharm

@p4309027
Copy link

p4309027 commented Jun 1, 2020

this one worked for me to generate the token for ci/cd:

$ firebase login:ci --interactive --no-localhost

@imvikaskohli
Copy link

imvikaskohli commented Jul 30, 2020

firebase login:ci --interactive

this is the solution

this worked for me
firebase login:ci --interactive

@acatzk
Copy link

acatzk commented Nov 20, 2020

damn.... firebase login --interactive HAHAH thanks a lot

@Punisher2501
Copy link

Noting seems to work form all of above in my case can someone help
not working

@MdSakibAhmed
Copy link

I had same problem. i can solve my problem by this command firebase login:ci --interactive

@JBeichert
Copy link

JBeichert commented Apr 14, 2021

In windows
if you are using Git Bash try using CMD.

THANKS using powershell fixed it for me!

@mrdanishsaleem
Copy link

firebase login --interactive

Worked like a charm 🤩

@mohammad-zakaria
Copy link

firebase login:ci --interactive

this is the solution

It works, thanks :)

@snazhmudinov
Copy link

This issue still persists for me, when running on linux CI machines.
I specified both GOOGLE_APPLICATION_CREDENTIALS and FIREBASE_TOKEN env variables, however that doesn't help.
I get Error: Cannot run login:ci in non-interactive mode.

My command:

env GOOGLE_APPLICATION_CREDENTIALS="..." \
    FIREBASE_TOKEN="..." \
    firebase login:ci

@champ96k
Copy link

I'm also getting error in azure-cdcd pipeline for firebase project authentication #6276

@snazhmudinov
Copy link

@mbleigh do you think it's worth re-opening the issue? or maybe updating the documentation with proper instructions?

@samakpan-sp
Copy link

firebase login --interactive worked for me. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests