无法更改默认项目以在Firebase托管上部署我的项目 [英] Unable to change the default project to deploy my project on firebase hosting
问题描述
我正在尝试在Firebase托管上部署我的项目.并且每当我使用firebase init
时,它就会在终端中显示错误,因为"firebaserc已经具有默认项目",并且退出并显示该错误
i am trying to deploy my project on firebase hosting. And whenever i am using firebase init
it is showing error in terminal as "firebaserc already has a default project " and it exit with that error
我已尝试注销Firebase和再次登录Firebase.并使用了"firebase use"命令来更改项目,但它仍在默认项目上执行firebase init操作
i have tried firebase logout and firebase login again . And used "firebase use" command also to change the project but it is still performing the firebase init action on the default project
我要删除该默认项目
推荐答案
如果您仔细查看消息传递,则表示文件名是带有前导点的".firebaserc".该文件表明firebase init
已经在此文件夹中运行,并且该文件的内容描述了它连接到的项目(flairboat-48f7b).如果您不再需要该文件,请将其删除并重新开始.由于它以点开头,因此可能无法在普通视图中隐藏,但是可以确定它存在.
If you look very carefully at the messaging, it's saying that the name of the file is ".firebaserc" with a leading dot. This file indicates that firebase init
was already run in this folder, and the contents of that file describe which project it's connected to (flairboat-48f7b). If you no longer want that file, delete it and start over. Since it starts with a dot, it might be hidden from normal view, but you can be sure that it exists.
这篇关于无法更改默认项目以在Firebase托管上部署我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!