简体   繁体   English

firebase init throws Error: failed to get Firebase 项目名称错误

[英]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-nameprojectID脚本中的项目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.

相关问题 错误:无法获取 Firebase 项目项目名称。 请确保该项目存在并且您的帐户有权访问它 - Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has permission to access it Azure 管道错误:无法获取 Firebase 项目项目名称。 请确保该项目存在并且您的帐户有权访问它 - Azure Pipline Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has permission to access it 'firebase init' 给了我一个离子项目的一般错误 - 'firebase init' gives me a generic error on a ionic project 使用云构建部署云功能失败:错误:未能获得 firebase 项目 - deploy cloud functions using cloud build failed: Error: failed to get firebase project 错误:无法获取 Firebase 项目构建。 请确保该项目存在并且您的帐户有权访问它 - Error: Failed to get Firebase project build. Please make sure the project exists and your account has permission to access it Firebase 登录时出现“Auth.network-request-failed”错误的项目结果 - Firebase Project Results in "Auth/network-request-failed" error on login 无法获取 Firebase 项目 xxxxxx。 请确保该项目存在并且您的帐户有权访问它 - Failed to get Firebase project xxxxxx. Please make sure the project exists and your account has permission to access it 使用 firebase.User 方法从 firebase angular 项目获取登录用户的用户名时出错 - Getting error while using firebase.User method to get username of logged in user from firebase angular project FireBase Package React 项目路径错误 - FireBase Package Path Error on React Project 我的 Nextjs 项目上的 firebase 集成错误 - Error with firebase integration on my Nextjs project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM