Firebase Error: Authentication required with firebase-tools

cicciosgamino picture cicciosgamino · Jan 4, 2016 · Viewed 8.8k times · Source

I've just installed the firebase-tools with the as usual npm package installation process :

npm install -g firebase-tools 

i've already created a Firebase account connect with Google Account, but the problem is that the only procedure i can made with the command line tool is :

firebase login          // with success 
firebase prefs:token    // return me the auth token 

but every time i try the other commands i get the error :

Error: Authentication required. 

for example for the command init, list etc :

firebase init         // error 
firebase list         // error 

and so on ... why ?

The version of npm, node and firebase-tools :

node : v4.2.2
npm : 3.3.12
firebase : 2.2.0

Answer

Ravi picture Ravi · Jun 11, 2016

Use following command

1) firebase use --add

-> select project .firebaserc file has been created in your source dir

2) firebase deploy

now deploying hosting.

Thanks