Can't deploy project to firebase

杀马特。学长 韩版系。学妹 提交于 2019-12-03 13:02:11

问题


I try to deploy my app to firebase but it's fail.

$ firebase deploy --project af2test

⚠ Your CLI authentication needs to be updated to take advantage of new features. ⚠ Please run firebase login --reauth

Error: Unable to authorize access to project af2test

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

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

Having trouble? Try firebase deploy --help

Look like firebase-tools think that I have old version firebase app. But, I'm just create new project in a new console and it still not working. It used to work yesterday. I use latest firebase-tools from npm

$ firebase -V

3.6.0

If i downgrade to 2.1. It will ask me to upgrade?Any ideas to fix this?

$ firebase deploy --project af2test

Error: CLI is out of date (on 2.2.1 , need at least 3.0.0)

Run npm install -g firebase-tools to upgrade.


回答1:


MichaelBleigh had the answer

run

firebase list

which shows something like:

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

Use the project id to deploy with

firebase deploy --project af2test-f289d


来源:https://stackoverflow.com/questions/43251225/cant-deploy-project-to-firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!