flutterfire_cli icon indicating copy to clipboard operation
flutterfire_cli copied to clipboard

flutterfire CLI doesn't seem to find my firebase install

Open jeremyhalin opened this issue 4 years ago • 7 comments

I've just installed Firebase CLI with standalone bin. I've placed the binary in C:\firebasecli\firebase-tools-instant-win.exe and added the directory to my PATH.

I can now access firebase cli through my terminal and firebase-tools-instant-win. Everything works fine, I was able to login and to list my projects.

But when I do a flutterfire configure here is what I got :

> flutterfire configure
i Found 0 Firebase projects. Selecting project project-name-4e1f6.
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase --version 
ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.

> firebase --version
10.0.1

>

I did go through flutterfire cli souce code and I've seen that it's just trying to do a firebase --version which is working on my side :

> firebase --version
10.0.1

What did I miss?

jeremyhalin avatar Dec 19 '21 21:12 jeremyhalin

I am also getting the same error.

Zohaib-Dev-Engr avatar Dec 23 '21 08:12 Zohaib-Dev-Engr

I found a workaround as mentioned here, placing the firebase CLI binary in your project and renaming it to firebase.exe works fine...

jeremyhalin avatar Dec 27 '21 09:12 jeremyhalin

I found a workaround as mentioned here, placing the firebase CLI binary in your project and renaming it to firebase.exe works fine...

not work with me. PS D:\Flutter\tebak> flutterfire configure ⠙ Fetching available Firebase projects... Unhandled exception: FormatException: Unexpected character (at character 1)

^

allasca avatar Dec 30 '21 14:12 allasca

@allasca Your error doesn't seem to be related to mine. You had same error as me before?

jeremyhalin avatar Dec 30 '21 17:12 jeremyhalin

@allasca Your error doesn't seem to be related to mine. You had same error as me before?

I dont know, maybe same. already re-install flutter_cli still not work. already renamed to firebase.exe and copy to project folder, not work. maybe I need to do it manually

allasca avatar Dec 31 '21 04:12 allasca

I had a similar issue (#33), but it was solved with the two commands here: https://github.com/invertase/flutterfire_cli/issues/27#issuecomment-1002965081

Maybe that will help.

chonghorizons avatar Jan 04 '22 21:01 chonghorizons

I got this error as well, none of the options discussed here fixed it for me. I ended up just installing using npm.

jonscoresby avatar Sep 21 '22 05:09 jonscoresby