Firebase Init - Failed to get <your_project>


The Error

Error: Failed to get Firebase project <your_project_name_on_Firebase>. Please make sure the project exists and your account has permission to access it.

The following error happens when you try to deploy a Firebase project by calling

firebase init

The Fix


1.

Update your CLI (Command Line Interface) for Firebase init using the following command in your terminal:

npm install -g firebase-tools

2.

The classic logging out and logging back again.


firebase logout
firebase login