MacOS gives zsh: command not found: flutter after updating path according to Flutter Official Docs [closed]

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 did not work, remove the double quote from path or use the full path explicitly instead of ~.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)