Firebase Init抛出错误:无法获得错误的项目名称的Firebase Project

发布于 2025-01-26 02:52:51 字数 779 浏览 4 评论 0原文

当我从静态项目目录中运行firebase init时,项目设置失败了此错误:

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

错误中的project-nameproject> projectiD 在firebaseconfig脚本中。在我的firebase仪表板或项目详细信息中,没有列出的项目为project-name。 我已经尝试过 - reauth 添加一个项目别名,但错误是相同的,那么名称差异。 离开登录浏览器选项卡打开绝对不起作用。

项目名称似乎出了问题。我该如何解决?

When I run firebase init from my static project directory, project setup fails with this error:

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

The project-name in the error is different from the projectID in the firebaseConfig script. There is no project listed as project-name in my firebase dashboard or project details.
I've tried logging out and logging in with --reauth and adding a project alias but the error is the same and so is the name difference. Leaving the login browser tab open definitely doesn't work.

It seems like something is going wrong with the project name. How do I sort this out?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只为守护你 2025-02-02 02:52:51

问题是我的.firebaserc文件的较旧版本。一旦我删除了旧 firebase cli项目已完全删除能够成功运行firebase init

The problem was an older version of my .firebaserc file. Once I deleted that the old firebase CLI project was fully deleted and I was able to run firebase init successfully.

︶葆Ⅱㄣ 2025-02-02 02:52:51

在.firebaserc文件中添加更新的项目名称&然后是firebase Init。

Add updated project name in .firebaserc file & then firebase init.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文