

Instead of nano, you can use any text editor to edit file ~/.bash_profile. Notice that is where you installed Flutter SDK, not the location of your app

Verify that the flutter/bin directory is now in your PATH by running: echo $PATH Run source $HOME/.bash_profile to refresh the current window or restart the terminal Press Ctrl + X and when it asks you to save the file, choose Yes If you are using a different shell, the file path and filename will be different on your machine.Īdd the following line and change to be the path where you cloned Flutter’s Git repository is: export PATH=/flutter/bin:$PATHįor example: export PATH=~/Documents/flutter/bin:$PATH MacOS v10.15 (Catalina) uses the Z shell by default, so edit $file HOME/.zshrc. You can do that by using terminal text editor by going in terminal and typing nano ~/.bash_profile You need to correctly set up your Flutter path.ĭetermine the directory where you placed the Flutter SDK.
