简体   繁体   English

错误:创建项目失败。 有关更多信息,请参阅 firebase-debug.log

[英]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.

相关问题 如何解决:错误:无法列出 Firebase 项目。 有关更多信息,请参阅 firebase-debug.log - How do I solve: Error: Failed to list Firebase projects. See firebase-debug.log for more info 无法识别 Firebase 项目。 我希望这是一个演示项目 - Unrecognized Firebase Project. I'm hoping it is a demo project 部署 firebase 云函数时创建函数项目失败 - Failed to create function project when deploying firebase cloud function Firebase 登录时出现“Auth.network-request-failed”错误的项目结果 - Firebase Project Results in "Auth/network-request-failed" error on login 在 firebase 分析调试视图中看不到事件 - Cannot see events in firebase analytics debug view 应用消息中的 Firebase 在我的 React Native 项目中不起作用。 有人有同样的问题吗? - Firebase in app messaging is not working in my react native project. Anyone having the same issue? 如何查看我的 android firebase mlkit 调用的 firebase 服务器日志? - How to see the firebase server log for my android firebase mlkit calls? pip3 install firebase-admin 在命令“python setup.py egg_info”失败,错误代码为 1 - pip3 install firebase-admin fails at Command "python setup.py egg_info" failed with error code 1 使用云构建部署云功能失败:错误:未能获得 firebase 项目 - deploy cloud functions using cloud build failed: Error: failed to get firebase project FlutterFire/Firebase CLI:无法为项目 myapp-e8cd7 创建 iOS 应用程序 - FlutterFire/Firebase CLI: Failed to create iOS app for project myapp-e8cd7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM