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

相关文章
|
Go Windows
Go 交叉编译 跨平台编译(windows系统跨平台编译)
Go 交叉编译 跨平台编译(windows系统跨平台编译)
125 0
|
Go 开发工具 C语言
flutter项目打包.exe文件发布windows版
目录 发布windows版 1.为现有的 Flutter 应用程序添加桌面支持 2..创建main_desktop.dart文件 3.hover安装和环境配置 4.初始化,并打包 坑1
1515 0
flutter项目打包.exe文件发布windows版
|
3月前
|
Dart 搜索推荐 IDE
Windows下Zed编辑器配置Dart环境
本文介绍了Dart编程语言及其主要框架Flutter的优势,并推荐使用轻量级编辑器Zed进行Dart开发。详细步骤包括Dart环境的安装与配置,Zed编辑器的安装与个性化设置,以及如何在Zed中编写并运行Dart的HelloWorld程序。通过自定义任务实现Dart文件的快速运行,提高了开发效率。
|
8月前
|
Dart 测试技术 开发工具
Dart开发环境搭建-Windows
Dart开发环境搭建-Windows
188 7
|
Dart 编译器 开发工具
Flutter | windows使用vscode创建并使用夜神模拟器运行flutter
开发Flutter如果使用Android studio并运行,编译器加上虚拟机基本上直接占用2个多G内存,对于16G内存的电脑来说,压力还是有点大的。所以如果使用vscode开发是不是好很多,而且还用的顺手。
359 0
|
Dart 开发工具 Windows
Dart(1)介绍 Win Mac上面分别搭建Dart环境 开发工具配置 以及运行Dart
Dart(1)介绍 Win Mac上面分别搭建Dart环境 开发工具配置 以及运行Dart
104 0
2023-2-22-Clion连接远程服务器进行跨平台编译
2023-2-22-Clion连接远程服务器进行跨平台编译
155 0
|
Unix Linux Shell
怎么样在Windows下使用Make编译Golang程序
怎么样在Windows下使用Make编译Golang程序
1784 0
|
SQL Ubuntu Go
go在ubuntu交叉编译windows应用.cgo错误
交叉编译cgo项目是出了名的困难,也是众所周知的GoReleaser的limitation。我建议您查看一下cgo cookbook,如果您还没有这样做的话。
1495 0
|
Python
python + uiautomator2编译平板语言工具并切换打包exe可执行文件1.1.4版本--终版(下)
python + uiautomator2编译平板语言工具并切换打包exe可执行文件1.1.4版本--终版(下)
227 0
python + uiautomator2编译平板语言工具并切换打包exe可执行文件1.1.4版本--终版(下)