Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh: command not found: flutter [closed]

Recently I updated Mac OS to latest Catalina and my terminal which is using zsh now start showing me following error:

zsh: command not found: flutter 

It was working fine before update.

like image 350
Code Hunter Avatar asked Oct 15 '19 18:10

Code Hunter


Video Answer


1 Answers

You need to update the environment path.

  1. Open terminal.

  2. vim $HOME/.zshrc

  3. Press "I" key for going to insert mode.

  4. add the following line in the opened file:

    export PATH="$PATH:/YOUR_FLUTTER_DIR/flutter/bin"

  5. Press "Esc" then write :wq! in terminal and press enter to exit vim.

  6. Reopen the terminal and check "flutter doctor"

If this solution not work, remove the double quote from path.

like image 190
Murad Al Wajed Avatar answered Sep 22 '22 17:09

Murad Al Wajed