Installation Guide

From Dart Wiki
Jump to navigation Jump to search

Installation Guide[edit]

Prerequisites[edit]

Before installing Dart, please make sure you have the following prerequisites:

  • Operating System: Windows, macOS, or Linux.
  • Memory: At least 2GB of RAM.
  • Disk Space: At least 1GB of free disk space.
  • Internet Connection: A stable internet connection is needed for downloading and installing Dart.

Download Dart SDK[edit]

You can download the Dart SDK from the official Dart website. Follow these steps:

1. Visit the official Dart website. 2. Select the appropriate version of the SDK for your operating system. 3. Click on the download link to start the download process.

Install Dart SDK[edit]

Once you have downloaded the Dart SDK, follow the instructions below to install it on your system:

Windows[edit]

1. Locate the downloaded Dart SDK file (e.g., `dart-sdk-windows-x64.zip`) and extract it to a suitable location on your machine. 2. Add the Dart SDK to your system's PATH variable:

  * Open the `System Properties` window by right-clicking on `This PC` and selecting `Properties`.
  * Click on `Advanced system settings`.
  * In the `System Properties` window, click on the `Environment Variables` button.
  * Under `System variables`, locate the `Path` variable and click on `Edit`.
  * Click on `New` and add the path to the `bin` directory of the extracted Dart SDK (e.g., `C:\path\to\dart-sdk\bin`).
  * Click `OK` to save the changes.

3. Open a new command prompt and type `dart --version` to verify that Dart has been installed correctly.

macOS[edit]

1. Locate the downloaded Dart SDK file (e.g., `dartsdk-macos-<version>.zip`) and extract it to a suitable location on your machine. 2. Open a terminal window. 3. Add the Dart SDK to your PATH environment variable by running the following command in the terminal:

  * `export PATH="$PATH:/path/to/dart-sdk/bin"`

4. Verify the installation by typing `dart --version` in the terminal.

Linux[edit]

1. Locate the downloaded Dart SDK file (e.g., `dartsdk-linux-<version>.zip`) and extract it to a suitable location on your machine. 2. Open a terminal window. 3. Add the Dart SDK to your PATH environment variable by running the following command in the terminal:

  * `export PATH="$PATH:/path/to/dart-sdk/bin"`

4. Verify the installation by typing `dart --version` in the terminal.

IDE Setup[edit]

For a more streamlined development experience, consider setting up an Integrated Development Environment (IDE) with Dart support:

Refer to the respective IDE documentation for installation instructions and Dart plugin details.

Verify Installation[edit]

To verify that Dart has been installed correctly, open a terminal or command prompt and run the following command:

``` dart --version ```

If the command displays the Dart version and other information, it means Dart has been successfully installed.

Congratulations! You have now successfully installed Dart and are ready to start programming in the Dart programming language.