Search code examples
fluttermacoszsh

After upgrade MacOS terminal showing: zsh: command not found: flutter


Recently I updated Mac OS to latest Catalina. Now when entering a flutter command like the following,

flutter --version

my terminal (which is using zsh) shows me following error:

zsh: command not found: flutter

How do I reinstate the path to allow flutter commands from any directory?


Solution

  • I followed URL to resolve my issue.

    I simply created a .zshrc file which was not exist then added my PATH variables copied from existing .bashrc.