'ERROR: Failed to create project. See firebase-debug.log for more info

i Found 0 Firebase projects. ✔ Enter a project id for your new Firebase project (e.g. my-cool-project) · onoja i New Firebase project onoja created succesfully. FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command. COMMAND: firebase projects:create onoja --json ERROR: Failed to create project. See firebase-debug.log for more info.



Solution 1:[1]

try

$ firebase login --reauth

if it does not work try Open terminal.

vim .zshrc

Press "i" key to activate insert mode.

add export PATH="$PATH":"$HOME/.pub-cache/bin"

Press "Esc" then write :wq in terminal and press enter to exit vim.

Reopen the terminal and check "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

Solution 2:[2]

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.

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ahmed Iftikhar
Solution 2 Varon