Dart sdk path windows

Contents
  • System requirements
  • Choose an installation option
  • Install the Dart SDK
  • Release channel reference
    • Stable channel
    • Beta channel
    • Dev channel

This page describes how to download the Dart SDK. The Dart SDK includes the libraries and command-line tools that you need to develop Dart command-line, server, and web apps.

The Dart team supports only the latest stable release of the SDK. For full details on the SDK release lifecycle and supported versions, check out the SDK support policy.

To learn more about the Dart SDK, consult the Dart SDK overview.

System requirements

#

Dart supports the following hardware architectures and platform versions to develop and run Dart code.

Platform x64 IA32 (x86) Arm32 Arm64 RISC-V (RV64GC) OS Versions
Windows verified dangerous dangerous verified do_not_disturb_on 10, 11
Linux verified dangerous verified verified verified Debian stable,
Ubuntu LTS under standard support
macOS verified dangerous do_not_disturb_on verified do_not_disturb_on Latest three versions of macOS:
Sonoma (14), Ventura (13), Monterey (12)

verified Supported on all channels.
error Support is deprecated and might be dropped in a future Dart release.
report Support is deprecated and will likely be removed in the next stable release.
dangerous Unsupported on all channels.
do_not_disturb_on Unsupported by the operating system.

Choose an installation option

#

To install and update the Dart SDK from the stable channel, choose one of the following options:

  1. Use a package manager (Recommended).

  2. Use a Dart Docker image.

  3. Install Flutter.
    If you’ve installed or plan to install the Flutter SDK, it includes the full Dart SDK. The Flutter SDK includes the dart CLI tool in Flutter’s bin folder.

  4. Download a ZIP archive from the SDK Archive.

  5. Build the SDK from source.

Install the Dart SDK

#

To install the Dart SDK, use the appropriate package manager for your development platform.

To upgrade the Dart SDK, run the same command to install the Dart SDK from your package manager.

  • Windows
  • Linux
  • macOS

Install using Chocolatey

#

To install the Dart SDK, use Chocolatey. Chocolatey requires elevated permissions.

  1. Install Chocolatey.

  2. Launch PowerShell with elevated permissions.

    PS C:\> choco install dart-sdk

Change default install path

#

By default, Chocolatey installs the SDK at C:\tools\dart-sdk. To change that location, set the ChocolateyToolsLocation environment variable to your desired installation directory.

Verify your PATH includes Dart

#

Verify you can run Dart.

PS C:\> dart --version
Dart SDK version: 3.2.4 (stable) (Thu Dec 21 19:13:53 2023 +0000) on "win_x64"

If your development machine doesn’t return a Dart version, add the SDK location to your PATH:

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

Upgrade using Chocolatey

#

To upgrade the Dart SDK, use the following command.

PS C:\> choco upgrade dart-sdk

Uninstall using Chocolatey

#

To uninstall the Dart SDK, perform the following steps.

  1. Launch PowerShell with elevated permissions.

  2. Use the following command.

    PS C:\> choco uninstall dart-sdk
  3. Remove the Dart configuration files from your home directory.

    PS C:\> Remove-Item -Recurse -Force ^
         -Path $env:LOCALAPPDATA\.dartServer,$env:APPDATA\.dart,$env:APPDATA\.dart-tool

Install using a Linux package manager

#

You have two options to install the Dart SDK on Ubuntu or Debian:

  • Use the apt-get command.
  • Download a .deb package and run the dpkg command.

Install using the apt-get package manager

#

To install Dart with apt-get, perform the following steps. You need steps 1 to 3 only for the first install.

  1. Update the package index files and install the secure HTTP package.

    $ sudo apt-get update && sudo apt-get install apt-transport-https
  2. Download and add the Google Linux GPG public key.

    $ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \
      | sudo gpg  --dearmor -o /usr/share/keyrings/dart.gpg
  3. Add the Dart package repository to your Linux system.

    $ echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' \
      | sudo tee /etc/apt/sources.list.d/dart_stable.list
  4. Use the following sudo apt-get commands.

    $ sudo apt-get update && sudo apt-get install dart

Install as a Debian package

#

To install the Dart SDK as a Debian package (*.deb), perform the following steps.

  1. Download the Dart SDK Debian package.

  2. Use the sudo dpkg command to install the *.deb package.

    $ sudo dpkg -i dart_3.4.0-1_amd64.deb

    Substitute dart_3.4.0-1_amd64.deb with the current filename.

Upgrade the Dart SDK

#

Use the same command that you used to install the SDK.

Upgrade using apt-get

#

If you installed the Dart SDK with apt-get, use the following sudo apt-get commands.

$ sudo apt-get update && sudo apt-get install dart

Upgrade using dpkg

#

If you installed the Dart SDK with dpkg, use the sudo dpkg command.

$ sudo dpkg -i dart_3.2.6-1_amd64.deb

Substitute dart_3.4.0-1_amd64.deb with the new upgrade’s filename.

Uninstall the Dart SDK

#

Uninstall using apt-get

#

If you installed the Dart SDK with apt-get, use the sudo apt-get remove command.

  1. Use the sudo apt-get remove command.

    $ sudo apt-get remove -y dart
  2. Remove the Dart configuration files from your home directory.

Uninstall using dpkg

#

If you installed the Dart SDK with dpkg, use the sudo dpkg --purge command.

  1. Use the sudo dpkg --purge command.

    This removes the configuration files at the same time.

  2. Verify the SDK has been removed.

Install using Homebrew

#

To install the Dart SDK, use Homebrew.

  1. Install Homebrew if needed.

  2. Add the official tap.

    $ brew tap dart-lang/dart
  3. Install the Dart SDK.

Verify PATH includes Homebrew

#

Verify that your PATH includes the Homebrew bin directory. Setting up the correct path simplifies using Dart SDK commands such as dart run and dart format.

To get help configuring your PATH, consult the Homebrew FAQ.

Upgrade using Homebrew

#

To upgrade when a new release of Dart is available:

Switch Dart versions

#

To switch between locally installed Dart releases:

  1. Install the version to which you want to switch.

    For example, to install Dart 3.1:

  2. To switch between versions, unlink the current version and link the desired version.

    $ brew unlink dart@<old> \
      && brew unlink dart@<new> \
      && brew link dart@<new>

List installed Dart versions

#

To see which versions of Dart you’ve installed:

Uninstall using Homebrew

#

To uninstall the Dart SDK, use Homebrew.

  1. Uninstall the Dart SDK.

  2. Remove the Dart configuration files from your home directory.

Release channel reference

#

Stable channel

#

Dart publishes a new release to the stable channel about every three months. The current stable version is [calculating].

Use stable channel releases for building and deploying production apps.

Stable channel release version strings follow a x.y.z format:

  • x : major version
  • y : minor version
  • z : patch version

Examples of stable channel version strings include 1.24.3 and 2.1.0.

To install a stable channel release, follow the instructions on this page.

Beta channel

#

Dart publishes a new release to the beta channel about once a month. The current beta version is [calculating].

Use beta channel releases for testing your app’s compatibility with future stable versions.

Beta channel release version strings follow a x.y.z-a.b.beta format:

  • x : major version
  • y : minor version
  • z : patch version
  • a : pre-release version
  • b : pre-release patch version

Examples of beta channel version strings include 2.8.0-20.11.beta and 3.3.0-205.1.beta.

To install a beta channel release, download the SDK as a zip file.

Dev channel

#

Dart publishes a new release to the dev channel about twice a week. The current dev version is [calculating].

Use dev channel releases for testing recent fixes and experimental features.

Dev channel release version strings follow a x.y.z-a.b.dev format:

  • x : major version
  • y : minor version
  • z : patch version
  • a : development version
  • b : development patch version

Examples of dev channel version strings include 2.8.0-20.11.dev and 3.2.12-15.33.dev.

To install a dev channel release, download the SDK as a zip file.

Unless stated otherwise, the documentation on this site reflects Dart 3.7.3. Page last updated on 2025-03-03. View source or report an issue.

Install Dart on Windows

In this tutorial, we will provide a step by step process to get Dart installed on Windows.

Dart SDK comes as a pre-compiled version. So, download and extracting is all you need to do.

Step 1: Download Dart SDK

Go to Dart SDK archive page.

The URL is https://dart.dev/tools/sdk/archive.

Download Dart SDK

Click on the Dart SDK link. The download will start immediately and a zip file will be downloaded.

Step 2: Extract zip file

Extract the contents of Dart SDK zip file. The contents of the folder would be as shown below.

Dart SDK zip - extracted contents

Step 3: Run Dart

You can run Dart command. Yeah!

Open command prompt and navigate to the bin folder.

Run the command dart.

Dart Command run on command prompt

Step 4: Add Dart Path to PATH Environment Variable

As of now, you can run dart command only from bin folder of dart sdk. To run dart command from anywhere in your file system, add dart bin path to PATH environment variable.

Open Environment Variables. Under System variables, click on Path and click Edit button.

Edit environment variable window appears. Click on New and paste the dart sdk bin path as shown below.

Dart SDK Bin - Environment Path Variable

Click on OK. The changes will take effect if you restart your command prompt.

Step 5: Restart Command Prompt

Close the existing command prompt window and open a new command prompt.

Just run the dart command from any working directory. We shall run from D:\.

Dart command run after environment variable update

Conclusion

In this Dart Tutorial, we learned how to install Dart on Windows, to work with Dart programming.

Dart SDK is a software development kit that empowers developers to build high-performance applications for mobile, web, desktop, and server environments. Developed by Google, Dart is an open-source programming language designed for fast app development and optimized for building user interfaces. The Dart SDK includes essential tools like the Dart compiler, package manager, and libraries, enabling developers to write and execute Dart code efficiently.

Using Dart SDK on Windows offers several advantages. It provides an intuitive syntax that simplifies coding, a strong type system that reduces errors, and efficient performance for running both small scripts and large applications. Windows users benefit from Dart’s seamless integration with development environments and its ability to compile applications into native machine code or JavaScript, making it a versatile choice for cross-platform development.

In this guide, we will discuss the steps to install Dart SDK Windows with you, ensuring a smooth setup for your development needs.

Installing Dart SDK on Windows

To install Dart SDK on Windows, we will use Chocolatey, a powerful package manager for Windows. Chocolatey simplifies software installation and management by automating the download, setup, and configuration process through simple commands. It supports a wide range of packages and is particularly useful for developers who want to maintain a clean and efficient development environment.

Installing Chocolatey on Windows

To begin the installation of Dart SDK on Windows, the first step is to install Chocolatey on Windows, a package manager that simplifies the installation process of software and tools. Using PowerShell, you must first ensure that the execution policy on your system is not restricted. This can be checked by running the Get-ExecutionPolicy command:

execution policy

If it returns “Restricted,” you need to adjust it temporarily for the session by using Set-ExecutionPolicy Bypass -Scope Process:

bypass scope policy

Once the execution policy is set, proceed to run the following command in PowerShell. This command will configure your system to download and install Chocolatey:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Paste this entire line into the PowerShell window and press Enter. The system will download and execute Chocolatey’s installation script. Wait for the process to complete; it should take just a few seconds. If no errors are displayed, Chocolatey is successfully installed.

To verify, you can type choco –version command in the PowerShell window:

choco version

Installing Dart SDK Using Chocolatey

With Chocolatey installed, the next step is to install the Dart SDK. Open a new PowerShell window with administrative privileges to ensure all commands run without permission issues. Run the following command to install the Dart SDK:

choco install dart-sdk
install dart sdk

After entering this command, Chocolatey will fetch the Dart SDK package and begin the installation process. It will display progress updates in the terminal. Once the installation is complete, confirm that the Dart SDK is installed by typing `dart –version` in the terminal. This command should return the installed version of Dart, indicating a successful setup.

Install Dart SDK on Our Windows VPS!

Hosting a Windows VPS with Ultahost is now simpler and faster than ever. Experience ultra-fast SSD NVMe speeds with no interruptions or slowdowns.

Setting Environment Variables

To ensure that Dart commands work seamlessly across the system, you need to add the Dart SDK path to your system’s PATH environment variable. This can be done by copying the path where dart has been installed, which is typically in C:\tools\dart-sdk\bin. Copy the binary path and then paste in inside environment variables path:

dart sdk

Verifying Installation

To ensure everything is set up correctly, open a new PowerShell or Command Prompt window and run the below command:

dart --version
dart version

This step confirms that the system recognizes the Dart SDK command. If the version displays successfully, the Dart SDK installation is complete, and your system is ready for Dart development.

By following these steps, you now have a functioning Dart development environment on Windows. From here, you can move forward to writing, testing, and deploying Dart applications.

Key Components of Dart SDK

The Dart SDK is a comprehensive toolkit that provides everything developers need to write, build, and execute Dart applications. Each component in the SDK plays a vital role in streamlining the development process, ensuring flexibility, and optimizing performance. Below are the key components of the Dart SDK explained for clarity.

Dart VM

The Dart Virtual Machine (VM) is at the heart of the Dart SDK, providing a runtime environment for executing Dart code. It is specifically designed for efficient execution of Dart programs, supporting features like just-in-time (JIT) compilation during development for faster iteration and ahead-of-time (AOT) compilation for optimized performance in production.

dart2js Compiler

This powerful tool translates Dart code into JavaScript, enabling Dart to run seamlessly in any modern web browser. The dart2js compiler is optimized to produce highly efficient JavaScript code, ensuring that web applications written in Dart are fast and responsive.

dartdevc (Development Compiler)

Known as the Dart Development Compiler, dartdevc is tailored for quick compile times during development. It allows for real-time hot reloading of changes, making it ideal for debugging and iterative development workflows.

Core Libraries

The Dart SDK includes a rich set of core libraries, which provide fundamental utilities such as data structures, collections, asynchronous programming tools, and input/output handling. These libraries form the foundation for building robust and scalable Dart applications without relying on external dependencies.

Package Manager (pub)

The Dart SDK includes pub, a package manager that simplifies the process of managing dependencies and sharing reusable code. Developers can use pub to discover, install, and update third-party libraries or publish their own packages for others to use.

Analyzer

The analyzer is a static analysis tool that evaluates Dart code for potential errors, style issues, and best practices. It helps developers maintain high-quality, consistent code and ensures that any issues are caught early in the development cycle.

Standard Tools

The SDK comes with essential tools like dartdoc for generating documentation, dart format for formatting code according to best practices, and debugging utilities that make the development process smoother and more efficient.

Conclusion

In this article, we covered the comprehensive process to download Dart SDK Windows, highlighting the necessary steps to get started. By using Chocolatey, a package manager for Windows, the installation of Dart SDK becomes straightforward and efficient. After installing Chocolatey, we proceeded with the Dart SDK installation through a simple command, ensuring that the relevant directories were added to the system’s PATH. This made it possible to access Dart tools directly from the command line.

The installation process itself is user-friendly, with clear prompts guiding you along the way. After a quick setup and necessary environment adjustments, you can verify the installation with a simple command to check the Dart version. With Dart SDK successfully installed, developers are now ready to begin building cross-platform applications with ease.

Installing Dart SDK on Windows can be a simple process for beginners. Upgrading to an Ultahost cheap VPS hosting provides a more streamlined and efficient solution which is the ideal environment for SDK development. This eliminates compatibility issues and simplifies the installation process.

FAQ

What is Dart SDK?

Dart SDK is a set of tools and libraries that are necessary for developing applications in Dart. It includes the Dart VM, compiler, libraries, and command-line tools like dart and pub for running and managing Dart code.

What are the benefits of using Dart SDK on Windows?

Dart SDK offers fast performance, an intuitive syntax, and strong typing on Windows. It simplifies app development with cross-platform compatibility and native code compilation.

How does Chocolatey help in installing Dart SDK on Windows?

Chocolatey automates the installation of Dart SDK by managing dependencies and configurations. It simplifies the process with a single command, ensuring a hassle-free setup.

What is the purpose of setting environment variables during Dart SDK installation?

Setting environment variables ensures that Dart commands like dart work globally. It enables seamless usage of the Dart SDK from any terminal session.

Can I install Dart SDK with Homebrew on Windows?

Homebrew is primarily designed for macOS and Linux, but it’s also available on Windows via the Windows Subsystem for Linux (WSL). However, it’s easier and more common to install Dart on Windows directly using the ZIP file method as outlined above.

Do I need to install additional tools for Dart on Windows?

The Dart SDK comes with all the necessary tools to run and compile Dart applications. However, if you plan to develop Flutter applications, you will need to install Flutter and its associated dependencies.

What are the key components of Dart SDK?

The Dart SDK includes the Dart VM, compilers (dart2js and dartdevc), core libraries, a package manager (pub), and debugging tools. These components streamline the development process for efficient and high-quality applications.

Введение в язык Dart

Что такое Dart. Первая программа

Последнее обновление: 03.12.2023

Dart представляет язык программирования общего назначения от компании Google, который предназначен прежде всего для разработки прикладных приложений. Основной сферой применения
языка Dart на сегодняшний день является разработка графических приложений с помощью кроссплатформенного фреймворка Flutter. В частности, Flutter позволяет создавать клиентские веб-приложения, мобильные приложения под
Android и iOS и десктопные приложения под Windows, MacOS и Linux. Таким образом, мы можем написать на языке Dart программу с общим кодом и скомпилировать эту программу сразу под все поддерживаемые
платформы — Android, iOS, Windows, Linux, MacOS, веб-браузер. Но естественно фреймворком Flutter применение языка Dart не ограничивается.

В своем развитии Dart испытал влияние более ранних языков, таких как Smalltak, Java, JavaScript. Его синтаксис похож на синтаксис других си-подобных языков. При этом
Dart — объектно-ориентированный язык. Все значения, которые используются в программе на Dart, представляют объекты.

Dart быстро развивается. Текущая версия — 3, в рамках которой регулярно выходят новые подверсии.

Стоит отметить, что если Dart применяется для работы с фреймворком Flutter, то отдельно Dart можно не устанавливать, поскольку установочный пакет Flutter уже по умолчанию
содержит инструменты для языка Dart. Однако поскольку Flutter — это все таки частный вариант использования Dart, поэтому рассмотрим отдельную установку Dart SDK.

Установка Dart на Windows

Для работы с Dart необходимо установить Dart SDK. Для этого нужно загрузить zip-архив с SDK с адреса https://dart.dev/get-dart/archive
и распаковать его на жестком диске.

Установка Dart

На странице загрузки есть пакеты для Windows, Linux, MacOS. В данном же случае мы будем использовать стабильную сборку, которая рекомендуется к использованию в разработки, поэтому при загрузке выбираем нужный пакет в
секции «Stable channel».

Допустим, в моем случае Dart SDK распакован по пути C:\dart-sdk. Если мы перейдем в распакованном SDK к папке bin, то можем увидеть
там такую программу как dart.exe:

Установка Dart SDK на Windows

С помощью данной утилиты собственно и будут запускаться скрипты на языке Dart.

Чтобы каждый раз при запуске программы не надо было вводить полный путь до утилиты dart.exe, можно добавить путь к утилите в переменные среды. Для перехода к окну
изменения переменных среды можно ввести в окно поиска «изменение переменных» и выбрать появившийся пункт «Изменение переменных среды текущего пользователя»:

Добавление Dart SDK в переменные среды

В открывшемся окне выберем пункт Path и нажмем на кнопку Изменить:

Добавление пути к Dart SDK в переменные среды

Далее нажмем на кнопку Создать и добавим путь к dart sdk:

Добавление Dart SDK в Path Environments

Установка на MacOS

На MacOS самым простым способом установки Dart SDK является применение пакетного менеджера Homebrew. Соответственно сначала надо установить сам Homebrew (если он не установлен)
с помощью команды

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Затем в терминале последовательно ввести следующие две команды:

brew tap dart-lang/dart
brew install dart

Установка на Linux

При установке на Linux сначала выполняется временная настройка с помощью последовательности команд:

sudo apt-get update
sudo apt-get install apt-transport-https
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list

Затем собственно выполняется установка Dart SDK:

sudo apt-get update
sudo apt-get install dart

Проверка установки

После установки лучше проверить, что все установлено правильно. Для этого можно проверить версию с помощью следующей команды в консоли:

dart --version

Если все установлено и настроено правильно, то консоль отобразит текущую версию Dart SDK что-то наподобие:

C:> dart --version
Dart SDK version: 3.2.2 (stable) (Tue Nov 28 11:22:54 2023 +0000)

Первая программа

Напишем первую простейшую программу. Для этого определим на жестком диске каталог для файлов. Например, в моем случае пусть это будет каталог C:\dart.
Создадим в каталоге новый текстовый файл, который будет называться main.dart (файлы с кодом Dart обычно имеют расширение
*.dart). Откроем данный файл в любом текстовом редакторе и определим в этом файле следующий простейший код:

void main() {
  print("Hello METANIT.COM!");
}

Первая программа на языке Dart на Windows

Любое приложение на языке Dart должно иметь функцию, которая называется main. Эта функция имеет тип
void и не принимает никаких параметров, поэтому после названия функции идут пустые скобки.

Тело функции помещается в фигурные скобки. В частности, в данном случае в функции main вызывается другая функция — print(),
которая выводит на консоль некоторую строку. В данном случае это строка «Hello METANIT.COM!»

Теперь запустим данную программу. Для этого откроем командную строку/терминал и перейдем к папке с файлом main.dart с помощью команды cd.

Затем компиляции и запуска программы введем в командную строку следующую команду:

dart main.dart

То есть в Dart SDK вызывается программа
dart (dart.exe),
которой передается наш скрипт main.dart. И после это будет выполняться наша программа, которая выведет на консоль строку:

Первая программа на Dart на Windows

Компиляция программы

С помощью утилиты dart.exe мы можем запустить программу, однако как мы можем создать некий исполняемый файл, чтобы в любое время его можно было запускать (без обращения к dart.exe) и
переносить на другой компьютер с той же операционной системой? Для этого утилите dart.exe наряду с исходным файлом программы надо передать команду compile exe. А после флага -o можно указать путь и название файла, который будет скомпилирован. Например:

dart compile exe main.dart -o hello.exe

В данном случае будет компилировать файл hello.exe.

Так, скомпилируем и запустим файл программы:

Компиляция программы на Dart с помощью dart compile exe

После этого в папке программы появится файл hello.exe, который можно будет запускать независимо от dart.exe.

Обратите внимание, что при запуске в Windows Powershell для запуска скомпилированного приложения из текущей папки применяется путь
«./hello.exe», в командной строке Windows можно писать просто «hello.exe» или «hello»

Dart Installation

There are multiple ways to install a dart on your system. You can install Dart on Windows, Mac, and Linux or run it from the browser.

Requirements

  • Dart SDK,
  • VS code or other editors like Intellij [We will use VS Code here].

Dart Windows Installation

Follow the below instructions to install a dart on the windows operating system.

Steps:

  • Download Dart SDK from here.
  • Copy dart-sdk folder to your C drive.
  • Add C:\dart-sdk\bin to your environment variable. Watch the video below to be more clear.
  • Open the command prompt and type dart --version to check it.
  • Install VS Code and Add Dart Extension.

Dart Windows Installation [Video]

Info

Note: Dart SDK provides the tools to compile and run dart program.

Dart Mac Installation

  • Install Homebrew From here.
  • Type brew tap dart-lang/dart in the terminal.
  • Type brew install dart in the terminal.
  • If you have any issues installing the dart, watch the video below.

Homebrew Install Command

Copy and paste this command on your terminal to install Homebrew.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

To set the homebrew path, copy and paste this command on your terminal.

export PATH=/opt/homebrew/bin:$PATH

Dart Mac Installation [Video]

Dart Linux Installation

To install a dart on Linux, open your terminal and copy/paste the below commands.

sudo apt-get update
sudo apt-get install apt-transport-https
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list

Then, install the dart using the below command.

sudo apt-get update
sudo apt-get install dart

To set the dart path, copy and paste this command on your terminal.

export PATH="$PATH:/usr/lib/dart/bin"

Check Dart Installation

Open your command prompt and type dart --version. The dart is successfully installed on your system if it gives you a version code. If not, watch the video above.

Some Useful Commands

Command Description
dart --help Show all available commands.
dart filename.dart Run the dart file.
dart create Create a dart project.
dart fix Update dart project to new syntax.
dart compile exe bin/dart.dart Compile dart code.
dart compile js bin/dart.dart Compile dart to javascript. You can run this file with Node.js.

Run Dart On Web

You can run the dart program on your browser without installing any software. Dartpad is a web tool to write and run your dart code.

  • Run Dart Programming on Web

Install Dart Official Link

  • Install Dart Official Link

Can You Run Dart From Mobile?

Yes, you can use DartPad to run simple dart programs from your phone without installing any software. For bigger projects, using DartPad is not recommended.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как делать скриншот на компьютере 10 windows клавишами
  • Как установить файл mdf на windows 10
  • Windows 10 установилась криво
  • Плохо работает блютуз на ноутбуке на windows 10
  • Установка revit server на windows server 2016