Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to initialize firebase project using firebase-tools

I'm trying to initialize a firebase project using the command firebase init, but I get the message Error: Command requires authentication, please run firebase login. When I run firebase login, the process hangs and does not return the prompt :

enter image description here

Previously I have installed the latest stable version of node.js and firebase-tools (with npm install -g firebase-tools). I'm using a Windows 8.1 x64 machine.

The content of firebase-debug.log file noes not report any error or warning:

[debug] ----------------------------------------------------------------------
[debug] Command:      C:\Program Files (x86)\nodejs\node.exe C:\Users\      \AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase login
[debug] Platform:     win32
[debug] Node Version: v5.1.0
[debug] Time:         Mon Nov 23 2015 13:49:06 GMT-0500 (Eastern Standard Time)
[debug] ----------------------------------------------------------------------
[debug] 

How can I debug the login command? Nomaly it should open a browser window for authentication, but this does't happen in my case.

like image 270
Ionut Avatar asked Nov 23 '15 19:11

Ionut


People also ask

How do you initialize Firebase in react native?

Setting Up iOS Firebase Project Now update the pod dependencies: 1npm install @react-native-firebase/analytics 2# in the root folder 3cd ios && pod install --repo-update && cd .. Firebase analytics dependency is a must to verify successful Firebase integration with iOS.

How do I install Firebase-tools on Windows?

Windows. Download the standalone binary for the CLI. Then, you can access the executable to open a shell where you can run the firebase command. Use npm (the Node Package Manager) to install the CLI and enable the globally available firebase command.


1 Answers

Did you get your answer yet?

You need to type 'firebase login --interactive' then it'll take you through the browser to a gmail account to sign into then you can execute your 'firebase init' command.

like image 53
JORDANO Avatar answered Sep 20 '22 15:09

JORDANO