How Do I Install Dart v2?


Ive looked all over the official Dart site. They go into great depth about ‘dev’ channels and ‘stable’ channels but no clue whatsover about how to actually install a version of the SDK. There is no information about the current stable and dev versions either.

Clearly I have missed something hiding in plain site. I want to try out some official angulardart component libraries but the builder requires Dart version 2 – but I have no idea how to get that.

Can someone put me out of my misery, and tell me how I’m being an idiot



Installation instructions for dart v2 (which currently only has a dev channel release) can be found here. To summarize,

Mac Installation with homebrew

brew tap dart-lang/dart
brew install dart --devel

Edit: If you are upgrading from Dart 1 see, How to upgrade to Dart 2?

Windows Installation

Visit here for the graphical installer or if you have Chocolatey installed do:

choco install dart-sdk -version 2


sudo apt-get update
sudo apt-get install apt-transport-https
sudo sh -c 'curl | apt-key add -'
sudo apt-get update
export PATH=/usr/lib/dart/bin:$PATH
sudo sh -c 'curl > /etc/apt/sources.list.d/dart_unstable.list'
sudo apt-get install dart

Answered By – Ryan Stonebraker

Answer Checked By – Clifford M. (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *