I am using Mac OS. i am trying register my project in firebase and use Crashlytics in firebase to check if any crash occurs in my app I had used
curl -sL https://firebase.tools | bash
command to install flutter tools it worked fine after that I tried to run
flutterfire configure
command but it throws
zsh: command not found: flutterfire
I know that I must set $path variable but to set path variable I don’t know where is my flutter tools has installed in my Mac. kindly help me to set $PATH variable
3
Answers
run before
dart pub global activate flutterfire_cli
Once you run the following command
you should get the following output
The output is telling you the executable is not on your path variable
Either run the export command in your terminal
OR
Add the command to your .zhrc file
we can use these steps
dart pub global activate flutterfire_cli
export PATH="$PATH":"$HOME/.pub-cache/bin"
to .bashrc bycode ~/.bashrc
source ~/.bashrc
flutterfire configure