[英]ERROR: Failed to create project. See firebase-debug.log for more info
i Found 0 Firebase projects.我找到了 0 个 Firebase 项目。 ✔ Enter a project id for your new Firebase project (eg my-cool-project) · onoja i New Firebase project onoja created succesfully.
✔ 为您的新 Firebase 项目(例如 my-cool-project)输入项目 ID。 FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
FirebaseCommandException:尝试运行命令时 Firebase CLI 发生错误。 COMMAND: firebase projects:create onoja --json ERROR: Failed to create project.
命令:firebase 项目:创建 onoja --json 错误:创建项目失败。 See firebase-debug.log for more info.
有关更多信息,请参阅 firebase-debug.log。
try尝试
$ firebase login --reauth $ firebase 登录 --reauth
if it does not work try Open terminal.如果它不起作用,请尝试打开终端。
vim .zshrc vim .zshrc
Press "i" key to activate insert mode.按“i”键激活插入模式。
add export PATH="$PATH":"$HOME/.pub-cache/bin"添加 export PATH="$PATH":"$HOME/.pub-cache/bin"
Press "Esc" then write :wq in terminal and press enter to exit vim.按“Esc”然后在终端中输入 :wq 并按 enter 退出 vim。
Reopen the terminal and check "flutterfire --version"重新打开终端并检查“flutterfire --version”
firebase login火力基地登录
flutterfire configure扑火配置
if the solution above does not work try to create a project on firebase console manually, and in visual studio command flutterfire configure如果上述解决方案不起作用,请尝试在 firebase 控制台上手动创建项目,并在 Visual Studio 命令中使用 flutterfire 配置
This might be caused because you're using a new firebase account on Google or because you haven't set up the proper analytics on your Google firebase account.这可能是因为您在 Google 上使用了新的 firebase 帐户,或者因为您没有在 Google firebase 帐户上设置正确的分析。
I got rid of this by going into Google and setting up the project manually with all their various dialogues and then from thereon all other projects did not have this error in the CLI我通过进入谷歌并使用所有各种对话手动设置项目来摆脱这个问题,然后从那里所有其他项目在 CLI 中都没有这个错误
if you just start using flutterfire configure
for the first time.如果您是第一次开始使用
flutterfire configure
。 It means you haven't agreed any terms of use.这意味着您尚未同意任何使用条款。 You should go to firebase console on website first.
您应该首先在网站上使用 go 到 firebase 控制台。 Then start to build any project you want.
然后开始构建您想要的任何项目。 You would asked to sign some papers during this process.
在此过程中,您会要求签署一些文件。 Once it's done, you could use the terminal without the same error.
完成后,您可以使用终端而不会出现相同的错误。
I solved the problem of creating a Flutter project in the command line.我解决了在命令行中创建Flutter项目的问题。
Simply, the Project name should be less than 30 characters.简而言之,项目名称应少于 30 个字符。
Please I hope you get the correct answer.请我希望你得到正确的答案。 ^^
^^
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.