使用 firebase-tools CLI 更改目标 Firebase ID

Changing target Firebase ID using firebase-tools CLI

在命令行...

当我 运行 firebase deploy 时,出现以下错误:

Error: The entered credentials were incorrect.

当我运行firebase deploy --debug,I get the following (more detailed) error (and log) shown when you click here. (firebase-debug.log)

当我 运行 firebase deploy --project good-project-id 时,我得到了预期的部署行为。

当我重新运行 firebase deployfirebase deploy --debug 时,我得到了已经描述过的相同错误。

运行宁firebase deploy时如何进行适当的更改以消除错误?

备注:

查看项目目录中 .firebaserc 文件的内容。您可能指定了 "default" 项目别名。 运行 firebase list 并查看 项目 ID 是否也显示在那里(注意它应该是项目 ID,而不是 instance/subdomain 名称)。

如果不匹配,则可能是您的问题。您可以尝试的另一件事是删除 .firebaserc 文件,然后 运行 firebase use --add 创建一个新的项目别名。