Dart安装(Winodws)

简介: Dart安装(Winodws)

Dart官网:

https://dart.dev/

一、命令行安装

https://dart.dev/get-dart

You can install the Dart SDK using Chocolatey.


error Important: These commands require administrator rights. Here’s one way to open a Command Prompt window that has admin rights:

  1. Press Windows+R to open the Run window.
  2. Type cmd into the box.
  3. Press Ctrl+Shift+Enter.

To install the Dart SDK:

C:\> choco install dart-sdk

To upgrade the Dart SDK:

C:\> choco upgrade dart-sdk

By default, the SDK is installed at C:\tools\dart-sdk. You can change that location by setting the ChocolateyToolsLocation environment variable to your chosen installation directory.


If you can’t use the Dart SDK executables, 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.

二、客户端安装

下载客户端

https://gekorm.com/dart-windows/

当前最新文档版本地址:

 https://objects.githubusercontent.com/github-production-release-asset-2e65be/40707560/ebd20a00-adef-11e8-9523-d955f2ae35b3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240121%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240121T015938Z&X-Amz-Expires=300&X-Amz-Signature=15ebdb64fa808e2a4433aabe31721230d6c3e026e44c3455b733fb3c0f244a83&X-Amz-SignedHeaders=host&actor_id=16099831&key_id=0&repo_id=40707560&response-content-disposition=attachment%3B%20filename%3DDart_x64.stable.setup.exe&response-content-type=application%2Foctet-stream

下载后,打开客户端

点击下一步

选择合适的安装目录

点击下一步

点击安装


等待下载安装(如果网速很慢,需要魔法)

点击完成

三、测试

dart --version

目录
相关文章
|
3月前
|
关系型数据库 MySQL 开发工具
windows编译poco c++库
windows编译poco c++库
|
Go 开发工具 C语言
flutter项目打包.exe文件发布windows版
目录 发布windows版 1.为现有的 Flutter 应用程序添加桌面支持 2..创建main_desktop.dart文件 3.hover安装和环境配置 4.初始化,并打包 坑1
1388 0
flutter项目打包.exe文件发布windows版
|
2月前
|
Dart 测试技术 开发工具
Dart开发环境搭建-Windows
Dart开发环境搭建-Windows
39 7
|
1月前
|
C语言 C++
CLion2022安装与使用
CLion2022安装与使用
21 0
CLion2022安装与使用
|
2月前
|
IDE 开发工具 C++
快速开始c,配置Clion
快速开始c,配置Clion
36 0
|
11月前
Flutter MAC VSCode 常用快捷键和命令行
Flutter MAC VSCode 常用快捷键和命令行
144 0
|
11月前
|
Dart 开发工具 Windows
Dart(1)介绍 Win Mac上面分别搭建Dart环境 开发工具配置 以及运行Dart
Dart(1)介绍 Win Mac上面分别搭建Dart环境 开发工具配置 以及运行Dart
58 0
|
数据可视化 区块链
如何使用nsis打包electron开发的安装程序
如何使用nsis打包electron开发的安装程序
如何使用nsis打包electron开发的安装程序
|
Java C语言 C++
0基础都能看懂的 Visual Studio Code(VScode)使用脚本一键配置安装C/C++环境、编译运行Windows版本教程(内附脚本、安装包下载链接)
网上很多配置VScode的C、C++环境的教程,但是很多时候跟着从头到尾做了之后反而还是运行不了,于是笔者在网上翻阅资料后,发现了一个自动配置环境的脚本,亲测有效,大概5分钟就可以配置好环境了。直接进入教程。
0基础都能看懂的 Visual Studio Code(VScode)使用脚本一键配置安装C/C++环境、编译运行Windows版本教程(内附脚本、安装包下载链接)
|
C++ Windows
windows vscode 配置cmake 编译c/c++ 基础
1. 下载基础包; 2. 配置vscode; 3. cmake 基础
532 0