Search code examples
flutterfirebase

flutterfire configure returns "zsh: command not found: flutterfire" on Mac


I'm trying to connect Firebase to my Flutter project.

firebase-setup

I've installed the Flutterfire CLI, and export PATH="$PATH":"$HOME/.pub-cache/bin" in my terminal, but when I perform:

flutterfire configure --project=milra-61bdb

it gives me zsh: command not found: flutterfire.

I've restarted VC code as well as my computer, which was a common solution in the other answers to this question.

Any idea what else I can try?


Solution

    1. Open a terminal and type vim .zshrc
    2. Press i to start editing
    3. Add export PATH="$PATH":"$HOME/.pub-cache/bin"
    4. Press esc then : and finally wq

    Changes to the ~/.zshrc file will not take effect in the Terminal until you've quit and restarted the terminal. After that you can use the flutterfire CLI globally