无法将项目部署到Firebase
我尝试将我的应用部署到Firebase,但失败。无法将项目部署到Firebase
$ 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 [email protected]^2.1
To access the Firebase Console, visit https://console.firebase.google.com/
Having trouble? Try firebase deploy --help
样子火力的工具,认为我有旧版本的火力点应用。但是,我只是在新的控制台中创建新项目,但仍然无法正常工作。它曾经在昨天工作。我使用最新的firebase工具从npm
$ firebase -V
3.6.0
如果我降级到2.1。它会问我升级?任何想法来解决这个问题?
$ 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.
MichaelBleigh有了答案
运行
firebase list
这说明是这样的:
┌─────────┬───────────────────────┬─────────────┐
│ Name │ Project ID/Instance │ Permissions │
├─────────┼───────────────────────┼─────────────┤
│ af2test │ af2test-f289d │ Owner │
└─────────┴───────────────────────┴─────────────┘
使用项目ID与部署
firebase deploy --project af2test-f289d
这是什么意思,它不能访问项目af2test。检查运行Firebase列表时是否显示该项目。寻找项目ID,而不是实例名称。 –
@MichaelBleigh很多谢谢,它必须是项目ID不是项目名称。我的错 – user1084081