firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Firebase login error

Open Isuru40 opened this issue 8 years ago • 27 comments

I have installed node.js and npm. after i installed .Firebase command line tools also.after when i opened CMD and run firebase login .it says waiting for authentication .i waited nearly 1 hour.nothing happen.I found out the new command firebase login -- interactive this one also dosen't work. actually what should i do ?

Isuru40 avatar Aug 29 '18 04:08 Isuru40

Try running firebase login --no-localhost and following the instructions.

mbleigh avatar Aug 29 '18 19:08 mbleigh

I tried firebase login --no-localhost but it asked about paste authorization code here:.What is that ?

Isuru40 avatar Aug 30 '18 10:08 Isuru40

You need to open the link that the command prints out in a browser, follow the steps there, and then it will give you an authorization code that you can paste back into the command line. If you're not seeing a URL printed out, can you please paste or screenshot the output you're seeing? Also, what platform are you on and what version of the Firebase CLI are you running?

mbleigh avatar Aug 30 '18 15:08 mbleigh

I used windows 8. Firebase CLI Version: 4.2.1

screenshot 408 another thing is i run cmd from my project folder.it contain only one test html file to host. In that folder when i type cmd firebase login --no-localhost ,automatically .log file created .its name is firebase-debug

this is its contains **[debug] [2018-08-31T09:44:21.260Z] ---------------------------------------------------------------------- [debug] [2018-08-31T09:44:21.264Z] Command: C:\Program Files (x86)\nodejs\node.exe C:\Users\User pc\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase login [debug] [2018-08-31T09:44:21.264Z] CLI Version: 4.2.1 [debug] [2018-08-31T09:44:21.264Z] Platform: win32 [debug] [2018-08-31T09:44:21.264Z] Node Version: v8.9.4 [debug] [2018-08-31T09:44:21.273Z] Time: Fri Aug 31 2018 15:14:21 GMT+0530 (Sri Lanka Standard Time) [debug] [2018-08-31T09:44:21.274Z] ---------------------------------------------------------------------- [debug] [info] [info] Visit this URL on any device to log in: [info] https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=355504027&redirect_uri=http%3A%2F%2Flocalhost%3A9005 [info] [info] Waiting for authentication... [debug] [2018-08-31T09:44:24.353Z] Unable to open URL: Error: spawn cmd ENOENT at _errnoException (util.js:1022:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickDomainCallback (internal/process/next_tick.js:218:9) **

Isuru40 avatar Aug 31 '18 09:08 Isuru40

Did you follow the link that it prints out? The link after "Visit this URL on any device to log in:"?

Once you do that, you should be taken through a few screens and then get a code to paste.

mbleigh avatar Aug 31 '18 16:08 mbleigh

Yes it workes.Thankyou Mr Michael Bleigh

Isuru40 avatar Aug 31 '18 20:08 Isuru40

I am having the same problem, even when I paste that link it shows Error 400.

tars-a avatar Apr 21 '19 12:04 tars-a

@dhwanik9 Can you share your platform information and debug logs? Run the command with "--debug".

laurenzlong avatar Apr 29 '19 20:04 laurenzlong

@dhwanik9 Please open a new bug with your issue, rather than commenting on this one. Thanks.

bkendall avatar Apr 29 '19 21:04 bkendall

I have the same error but I cannot fix it.

cristiaan05 avatar Jun 23 '19 22:06 cristiaan05

@cristiaan05 please open a new issue with the appropriate information. Thanks.

bkendall avatar Jun 24 '19 21:06 bkendall

image

I have the same error but I cannot fix it.

arifpetok avatar Aug 23 '19 07:08 arifpetok

I am also facing the same issue like above
After Paster authorization code here: Error: An unexpected error has occured. There is no chance to paste the code ...Please do the neeful

srilu8213 avatar Aug 27 '19 14:08 srilu8213

I am also facing the same issue like above After Paster authorization code here: Error: An unexpected error has occured. There is no chance to paste the code ...Please do the neeful

change your PATH variable append C:\Windows\System32 to the end of your PATH variable If you don't know how to do that, see this article: https://www.computerhope.com/issues/ch000549.htm

arifpetok avatar Aug 28 '19 02:08 arifpetok

@arifpetok thanks for your suggestion...its working now...

srilu8213 avatar Aug 28 '19 13:08 srilu8213

C:\Windows\System32

thank u it works

Radhi157 avatar Jan 23 '20 06:01 Radhi157

C:\Windows\System32

Really helped. After pasting it in the path, as soon as I typed "firebase login", a window popped and said you are logged in. Helpful.

ashishk1331 avatar Apr 22 '20 12:04 ashishk1331

So helpful. Had this problem for hours, and the solution worked like a charm. Thank you so much!

nullbites avatar Jun 11 '20 22:06 nullbites

Poner C: \ Windows \ System32 ayuda para cualquier sistema operativo de 64 bits ??

ivan-lopez-camus avatar Jun 22 '20 05:06 ivan-lopez-camus

I am also facing the same issue like above After Paster authorization code here: Error: An unexpected error has occured. There is no chance to paste the code ...Please do the neeful

change your PATH variable append C:\Windows\System32 to the end of your PATH variable If you don't know how to do that, see this article: https://www.computerhope.com/issues/ch000549.htm

I have added path also but I am still having issue can you help me out

harshavallabhaneni56 avatar Jul 18 '20 12:07 harshavallabhaneni56