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

目录
相关文章
|
9月前
|
算法 Linux C++
linux中利用VScode编写C++程序
linux中利用VScode编写C++程序
|
Go 开发工具 C语言
flutter项目打包.exe文件发布windows版
目录 发布windows版 1.为现有的 Flutter 应用程序添加桌面支持 2..创建main_desktop.dart文件 3.hover安装和环境配置 4.初始化,并打包 坑1
1341 0
flutter项目打包.exe文件发布windows版
|
12天前
|
Dart 测试技术 开发工具
Dart开发环境搭建-Windows
Dart开发环境搭建-Windows
26 7
|
1月前
|
Windows 计算机视觉 Linux
QtCreator 跨平台开发添加动态库教程(以OpenCV库举例)- Windows篇
该文档介绍了Qt的跨平台特性,并推荐在Windows和Linux开发中使用QtCreator。在Windows下添加动态库,可以通过Visual Studio配置.lib文件和.dll文件,或在QtCreator中使用"添加库"功能。在QtCreator中,选择库文件、包含路径,并配置Details,然后更新.pro文件,清除、qmake及构建项目。运行时确保.dll与.exe在同一目录下。
QtCreator 跨平台开发添加动态库教程(以OpenCV库举例)- Windows篇
|
10月前
Flutter MAC VSCode 常用快捷键和命令行
Flutter MAC VSCode 常用快捷键和命令行
125 0
|
9月前
|
算法 Linux C++
linux中利用VScode编写python程序
linux中利用VScode编写python程序
linux中利用VScode编写python程序
|
缓存 Ubuntu Unix
Qt实用技巧:在CentOS上使用linuxdeployqt打包发布qt程序
本篇文章依然是继续发布主题,有centOS的qt项目需要发布,系统是CentOS8.2,同时也做了CentOS7.5的发布(CentOS7.5整体差上不差,就是需要先yum卸载自带的cmake,然后源码安装cmake3.4)
Qt实用技巧:在CentOS上使用linuxdeployqt打包发布qt程序
|
10月前
|
Dart 开发工具 Windows
Dart(1)介绍 Win Mac上面分别搭建Dart环境 开发工具配置 以及运行Dart
Dart(1)介绍 Win Mac上面分别搭建Dart环境 开发工具配置 以及运行Dart
54 0
|
10月前
QT之程序打包发布
QT之程序打包发布
|
数据可视化 区块链
如何使用nsis打包electron开发的安装程序
如何使用nsis打包electron开发的安装程序
如何使用nsis打包electron开发的安装程序