Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

How to Install Dart on MacOS?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The dart is an SDK (Software Development Kit) and SDK as you may observe from its name it is mainly a collection of software development tools that facilitate the creation of different applications, some of the tools include compilers debuggers libraries, and perhaps the software framework aiding towards the development process of creating.

Supported versions:

As of November 2021, the following versions are supported:

  • macOS 10.15 (Catalina)
  • macOS 11 (Big Sur)
  • macOS 12 (Monterey)

Installing Dart o MacOS:

Step 1: Install Homebrew, If you don’t know how to install it, check out this article

Step 2: Now open the terminal and run the following commands

 $ brew tap dart-lang/dart

Installing Dart o MacOS 1


Installing Dart o MacOS 2

Step 3: Now run this command on the terminal to install Dart

$ brew install dart

installing dart on macos 1


installing Dart on macos 2

Now Dart is on your system.

Upgrade to the new version:

To upgrade when there is a new release of Dart is available:

$ brew upgrade dart

Switch to a specific version:

If you want to switch between locally installed Dart releases or want to go to the previous version then, use brew switch dart <version>. Example:

$ brew switch dart 2.12.4

Note: The brew switch command was removed after the 2.6 release of Homebrew. To continue using brew switch, downgrade Homebrew to a 2.6 version:

$ cd /usr/local/Homebrew && git checkout 2.6.2

Verify Dart Installation on MacOS:

you can check which versions of Dart you’ve installed by running the following commands :

$ brew dart --version

Verify Dart installation on macos

My Personal Notes arrow_drop_up
Last Updated : 06 Dec, 2021
Like Article
Save Article
Similar Reads