Installing and configuring Dart SDK on Windows, Linux & Mac

Farhan Aslam
2 min readFeb 16, 2022

--

Hi Folks,

So If you have decided to start learning the dart, the very first step is to set the environment for the dart to run dart code on your system environment. In this blog, we will complete the installation process, configure the dart with VScode and run our first program on both Mac and Windows together.

Installing Dart on Windows, Linux and Mac

Click on the link to download dart SDK: Link.

Dart offer three major channels stable, beta & dev. I will suggest getting started with the Stable channel.

When you open the dart SDK link it will offer multiple methods of installation I will prefer to download an archive file of your platform if you are already familiar with the command-line tool you can even use commands to install dart SDK. Here is the link to download your platform-specific archive file of Dart SDK.

  • Setting up on Window:
    Now you have downloaded your archive file from the above link, unzip the file in a specific folder, Window folder is preferred. Now it’s time to add the dart path in the environment variables.

In the Windows search box, type env.

  1. Click Edit the system environment variables.
  2. Click Environment Variable.
  3. In the user variable section, select Path and click Edit
  4. Click New, and enter the path to the dart-sdk directory.
  5. In each window that you just opened, click Apply or OK to dismiss it and apply the path change.

Boom! All done now you are ready to run your code on your system, Don’t forget to add the dart extension in your Code Editor.

if you have flutter version ≥ 1.2 Congratulations dart is already installed on your system.

For Linux and Mac processes remain the same, You have to download the SDK file unzip it and set the path Boom! Now you are good to go.

If you face any problem in installation feel free to ask any queries.
Let’s Connect on Linkedin
Check my Youtube Channel for more.

--

--

Farhan Aslam

This is Farhan Aslam, I am a Software Engineer Working with Flutter, React-Native, MongoDB, and Node JS for Backend Applications and Doing MS in Data Science.