MacOS install: Get the Flutter SDK
Get the Flutter SDK
- Download the following installation bundle to get the latest stable release of the Flutter SDK: flutter_macos_v1.9.1+hotfix.6-stable.zip For other release channels, and older builds, see the SDK archive page.
- Extract the file in the desired location.
- Add the flutter tool to your path: $ export PATH="$PATH:`pwd`/flutter/bin".
- Optionally, pre-download development binaries: $ flutter precache.
Run flutter doctor
Run flutter doctor — This command checks your environment and displays a report to the terminal window.
$ flutter doctor
Update your path
- Determine the directory where you placed the Flutter SDK.
- Open (or create) the rc file for your shell. For example, macOS Mojave (and earlier) uses the Bash shell by default, so edit $HOME/.bashrc. macOS Catalina uses the Z shell by default, so edit $HOME/.zshrc. If you are using a different shell, the file path and filename will be different on your machine.
- Add the following line and change [PATH_TO_FLUTTER_GIT_DIRECTORY] to be the path where you cloned Flutter’s git repo: $ export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin".
- Run source $HOME/.<rc file> to refresh the current window, or open a new terminal window to automatically source the file.
- Verify that the flutter/bin directory is now in your PATH by running: $ echo $PATH Verify that the flutter command is available by running: $ which flutter.