We recommend using Homebrew to manage your Dart installation. Another option is downloading Dart manually.
To install Dart, run:
$ brew tap dart-lang/dart $ brew install dart
To update Dart once you’ve installed it using Homebrew, run:
$ brew update $ brew upgrade dart
To install Dartium, run:
$ brew tap dart-lang/dart $ brew install dartium
To update Dartium, run:
$ brew update $ brew upgrade dartium
By default, Homebrew downloads to
/usr/local, which might require using
sudo to handle issues with file permissions. If you prefer, you can
download to another location where you have write permissions, such
as your home directory.
Go to the directory above where you want
Homebrew and Dart to live.
For example, if you want Homebrew and Dart to live under
~/homebrew, go to
$ cd ~ # The directory that will contain Homebrew and Dart
Clone Homebrew. This creates a
$ git clone https://github.com/Homebrew/homebrew.git
homebrew/bin directory to your PATH.
brew instructions in
Dart will be installed under
Follow these steps to download Dart manually. You’ll need to download it again whenever you need the latest APIs and bug fixes.
Download the Dart SDK. Unzip the downloaded file to get the SDK.
<sdk>/bin to your
If you’re developing a web app, download Dartium. Unzip it to get a special version of Chromium with the Dart VM. This binary expires after 1 year. When that happens, you’ll need to download a new copy to continue using Dartium.