Firebase Init抛出错误:无法获得错误的项目名称的Firebase Project
当我从静态项目目录中运行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-name
与project> 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题是我的.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.在.firebaserc文件中添加更新的项目名称&然后是firebase Init。
Add updated project name in .firebaserc file & then firebase init.