[英]firebase init throws Error: failed to get Firebase project with wrong project name
When I run firebase init
from my static project directory, project setup fails with this error:当我从 static 项目目录运行
firebase init
时,项目设置失败并出现以下错误:
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.错误中的
project-name
与projectID
脚本中的项目firebaseConfig
不同。 There is no project listed as project-name
in my firebase dashboard or project details.在我的 firebase 仪表板或项目详细信息中没有项目
project-name
列为项目。 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.我试过注销并使用--reauth登录并添加项目别名,但错误是相同的,名称差异也是如此。 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?
我该如何解决这个问题?
The problem was an older version of my.firebaserc file.问题是 my.firebaserc 文件的旧版本。 Once I deleted that the old firebase CLI project was fully deleted and I was able to run
firebase init
successfully.一旦我删除旧的firebase CLI 项目被完全删除,我就能够成功运行
firebase init
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.