Cannot login with the Firebase CLI
Solution 1
Try:
firebase login --interactive
it will open up a browser window to authenticate.
Solution 2
On windows 10, I had issues with my firebase login through cli. I had to run my command line as the administrator and it worked.
Solution 3
In my case was bug in terminal in Visual Studio Code. On CMD terminal it start works.
carbontracking
Still messing with stuff, 26 years into my professional life
Updated on July 25, 2022Comments
-
carbontracking almost 2 years
I have a problem when I try to login to Firebase using the CLI. I installed
firebase-tools
usingnpm -g install firebase-tools
with admin rights. The steps I do are (from a cygwin terminal on Windows 10 Professional):firebase login --no-localhost
After this I get the message:
Visit the URL on any device.... Paste authentication code here:
Then, on my browser, I see Google asking if I give Firebase CLI access rights, I say yes and then I get an authorization code displayed on the browser.
I copy this code into the cygwin console and then:
Error: Authentication Error.
I'm at a total loss for this and it's completely stalling my efforts to get to know Firebase. All help gratefully appreciated.
-
Wai Ha Lee almost 3 years
-
Admin about 2 yearsYour answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.