Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to Install Dart on MacOS?

  • Last Updated : 06 Dec, 2021

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

Output:

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

Output:

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
Recommended Articles
Page :

Start Your Coding Journey Now!