Coming Soon for all Libraries!
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Visual Studio Code
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command
npm install -g firebase-tools
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a commandAsked 2022-Apr-03 at 15:24
Flutterfire just added a CLI for us to use but I'm having a problem with the
flutterfire configure command. I keep getting this error:
i Found 0 Firebase projects. Selecting project liveasy-1. 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.
Even though I've installed the firebase CLI and can run
firebase --version with no issues . I installed the standalone binary and when that didn't work I installed it with npm as well. I can login and see my projects list but running
flutterfire configure seems to be an issue. I can't also access any firebase commands in vscode.
I'm I supposed to add something to the PATH in environmental variables? I've already added the cache/bin/ where flutterfire resides but I don't know how to do the same for firebase.
ANSWERAnswered 2021-Dec-20 at 05:58
For solving the standalone issue part of your question:
1 copy the downloaded .exe to your flutter project folder
2 rename it from firebase-tools-instant-win to just firebase (exe)
3 run "firebase login" from cmd line in the folder where you put the .exe and continue with flutterfire configure
This is a quick setup for a single project, if you plan to use firebase cli across multiple projects, you need to rename and move the .exe to a suitable location and fix env/paths issues.
No vulnerabilities reported