How to Install Dart on MacOS?
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.
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
Step 3: Now run this command on the terminal to install Dart
$ brew install dart
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
Please Login to comment...