Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Error: Authentication required with firebase-tools

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
like image 634
cicciosgamino Avatar asked Jan 04 '16 12:01

cicciosgamino


1 Answers

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

like image 75
Ravi Avatar answered Sep 23 '22 14:09

Ravi