skip to Main Content

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


  1. run before dart pub global activate flutterfire_cli

    Login or Signup to reply.
  2. Once you run the following command

        dart pub global activate flutterfire_cli
    

    you should get the following output

    output

    The output is telling you the executable is not on your path variable

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

    Either run the export command in your terminal
    OR
    Add the command to your .zhrc file

    Login or Signup to reply.
  3. we can use these steps

    1. dart pub global activate flutterfire_cli
    2. Then add export PATH="$PATH":"$HOME/.pub-cache/bin" to .bashrc by code ~/.bashrc
    3. Then source ~/.bashrc
    4. flutterfire configure
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search