flutter zsh command not found flutter code example
Example 1: zsh: command not found: flutter
#Set environment $PATH of flutter
1- Open the file $HOME/.zshrc
2- Add the following line in the opened file:
export PATH="$PATH:/YOUR_FLUTTER_DIR/flutter/bin"
3- Save changes and restart your terminal
Example 2: add flutter to path mac permanently
Open Terminal
nano ~/.zshrc
Add: export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH
Run: source ~/.zshrc
restart terminal
Run: flutter doctor -v