I tried on integrating Firebase into the project for the first time but I am unable to run it in my Flutter App.
I have tried installing Firebase into my system. I downloaded Firebase CLI from the website and also added following dependencies:
firebase_core: ^3.2.0
firebase_auth: ^5.1.2
cloud_firestore: ^5.1.0
firebase_storage: ^12.1.1
dash_chat_2: ^0.0.21
firebase_analytics: ^11.2.0
I have already added this to path address in environment variable settings, but still I am not being able to perform — flutterfire configure as shown in youtube videos. When I do this, I get following error:
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.
And when I run on Command Prompt, this shows:
D:FLUTTER PROJECTSriverpod_course>flutterfire configure
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.
Sambid Dahal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.