Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase init command failing to execute

Can someone help me to solve this error I cannot run firebase init command before running firebase deploy.

Error: Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth

For CI servers and headless environments, generate a new token with firebase login:ci

like image 405
Serdar Avatar asked Jun 10 '17 09:06

Serdar


People also ask

What is firebase init?

firebase init. This command will initialize your app. NOTE − If you have used a default configuration, the public folder will be created and the index. html inside this folder will be the starting point of your app. You can copy your app file inside the public folder as a workaround.

How do I change the default project in firebase init?

Show activity on this post. Then in the list of projects, select your project. And then finally for the alias name enter default (or whatever you entered before). For a full list of the commands, have a look at the reference documentation of the Firebase CLI.

How do you fix firebase is not recognized as an internal or external command operable program or batch file?

To solve the error "'firebase' is not recognized as an internal or external command, operable program or batch file", install the firebase-tools package globally by running npm install -g firebase-tools and make sure your PATH environment variable is set up correctly.


2 Answers

if you are behind proxy invoke set "NODE_TLS_REJECT_UNAUTHORIZED=0" as described here

like image 52
yohayco Avatar answered Sep 30 '22 17:09

yohayco


Your credentials are not valid All you need is to login again Try the command firebase login --reauth

like image 25
Mohamed Hesham Avatar answered Sep 30 '22 16:09

Mohamed Hesham