firebase - 我 .firebaserc 已经有一个默认项目,使用 newproject-7432a。错误:无法获取 Firebase 项目 newproject-7432a
问题描述
在继续之前,我忘记从终端中的 Firebase 帐户注销并更改帐户firebase init
,我用旧帐户为新项目创建了一个 Firebase 功能,我回去删除了包括 xcworkspace 在内的文件,然后运行 pod install 并创建了一个新的工作区,当我想firebase init
再次运行时,它说
MooMyeongs-MacBook-Pro:Doshirak moomyeong$ firebase init
######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########
You're about to initialize a Firebase project in this directory:
/Users/moomyeong/Desktop/Desktop/Applications/Doshirak
? Which Firebase CLI features do you want to set up for this folder? Press Space
to select features, then Enter to confirm your choices. Firestore: Deploy rules
and create indexes for Firestore, Functions: Configure and deploy Cloud Functio
ns
=== Project Setup
First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.
i .firebaserc already has a default project, using newproject-7432a.
Error: Failed to get Firebase project newproject-7432a. Please make sure the project exists and your account has permission to access it.
因此newproject-7432a是我使用旧 Firebase 帐户的旧项目,我的新项目是 Doshirak
无论如何我可以解决这个问题,还是我必须从头开始?
解决方案
此消息告诉您运行 firebase init 的项目目录已经配置:
i .firebaserc already has a default project, using newproject-7432a.
.firebaserc 文件包含该项目的 ID。如果您不想再使用该项目,只需删除 .firebaserc 并再次运行 firebase init。
推荐阅读
- segmentation-fault - 我想为此“给定名称列表,显示最长的名称”编写一个 C++ 程序。,给定字符串数组和数组的大小
- javascript - 语法错误:编译 EJS 时出现意外的令牌捕获
- sql - 共享 SQL 查询
- python - 使用 pyqt 获取“QObject::setParent:无法设置父级,新父级在不同的线程中”
- firebase-hosting - Firebase Site Not Found 仅在主页出现错误
- c++ - 用户输入未正确推入矢量
- laravel - Laravel AWS:带有 SQS 队列的 Elastic Beanstalk:php artisan queue:work
- bootstrap-5 - 如何使用 Bootstrap 使导航栏水平?
- excel - 我去从 Excel 中的另一个单元格更改单元格值
- ios - 如何使用 react.js 在浏览器中打开 .vcf 文件而不显示下载消息