Unable to deploy project in firebase

I am trying to deploy my application in firebase, but it does not work.

$ firebase deploy --project af2test

⚠ Your CLI authentication needs to be updated to take advantage of the new features. ⚠ Please start a firebase account --reauth

Error: cannot allow access to af2test project

Note. This version of Firebase CLI is only compatible with projects upgraded to the new Firebase Console. To access firebase.com applications, you will need to use the previous version: npm install -g firebase-tools@ ^ 2.1

To open the Firebase console, visit https://console.firebase.google.com/

Having a problem? Try using firebase --help

It looks like the firebase tools believe that I have an old version firebase application. But I'm just creating a new project on a new console and still not working. He worked yesterday. I use the latest firebase tools from npm

$ firebase -V

3.6.0

If I lower to 2.1. He will ask me to update? Any ideas to fix this?

$ firebase deploy --project af2test

Error: CLI is outdated (incl. 2.2.1 requires at least 3.0.0)

Run npm install -g firebase-tools to update.

+5
source share
1 answer

Michael Bley had the answer

run

firebase list 

which shows something like:

 ┌─────────┬───────────────────────┬─────────────┐ │ Name │ Project ID / Instance │ Permissions │ ├─────────┼───────────────────────┼─────────────┤ │ af2test │ af2test-f289d │ Owner │ └─────────┴───────────────────────┴─────────────┘ 

Use project ID for deployment with

 firebase deploy --project af2test-f289d 
+8
source

Source: https://habr.com/ru/post/1266403/


All Articles