Skip to main content

Install the Dart SDK

Install the Dart SDK to start developing Dart applications. Choose your operating system below for installation instructions.
For Flutter developers: If you have Flutter installed, you already have the Dart SDK. The Flutter SDK includes a compatible version of Dart.

Choose your platform

Install with Homebrew

The easiest way to install Dart on macOS is using Homebrew.
1

Tap the Dart repository

brew tap dart-lang/dart
2

Install Dart

For the stable release:
brew install dart
For the beta release:
brew install dart-beta
For the dev release:
brew install --head dart
3

Verify installation

dart --version

Upgrade Dart

# Stable or beta channel
brew upgrade dart

# Dev channel
brew reinstall dart

Switch channels

To switch between channels, first unlink the current release:
brew unlink dart
Then install the desired channel using the commands above.

Alternative installation methods

Download platform-specific SDK archives from the Dart SDK archive.Available for all channels:
  • Stable: Production-ready releases
  • Beta: Preview of upcoming stable releases
  • Dev: Latest development builds
After downloading, extract the archive and add the bin directory to your PATH.
For advanced users, you can build the Dart SDK from source.
1

Install dependencies

Linux:
sudo apt-get install git python3 curl xz-utils
macOS:
  • Install Xcode from the App Store
Windows:
  • Install Visual Studio 2017 or newer with “Desktop development with C++”
  • Install Windows 10 SDK
2

Install depot_tools

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH:$PWD/depot_tools"
3

Get the source

mkdir dart-sdk
cd dart-sdk
fetch dart
4

Build the SDK

cd sdk
./tools/build.py --mode release create_sdk
Building from source is typically only needed for SDK contributors or for testing unreleased features.

Verify your installation

After installation, verify that Dart is correctly installed:
dart --version
You should see output similar to:
Dart SDK version: 3.x.x (stable)

System requirements

macOS

  • macOS 10.14 (Mojave) or later
  • x64 or ARM64 processor

Windows

  • Windows 10 or later
  • x64 processor

Linux

  • Debian 10 or Ubuntu 18.04 or later
  • x64, ARM, ARM64, or RISC-V processor

Next steps

Quickstart

Now that you have Dart installed, write your first Dart program

Build docs developers (and LLMs) love