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

相关文章
|
安全 开发工具 Android开发
几个Flutter常见诊断错误与解决Android toolchain - develop for Android devices X Unable to locate Android SDK
几个Flutter常见诊断错误与解决Android toolchain - develop for Android devices X Unable to locate Android SDK
5634 0
|
11月前
|
Java 开发工具 Android开发
Flutter环境搭建-Window环境
Flutter环境搭建以及搭建的常见问题
1037 6
|
6月前
|
人工智能 前端开发 Java
让AI Coding 效率翻倍!AGENTS.md 标准化文档详解:兼容Claude/Cursor/Codex全方案
在多AI编程工具并行使用的团队开发场景中,长期存在一个普遍痛点:不同AI客户端各自使用独立规则配置文件,Claude依赖CLAUDE.md、Cursor使用.cursorrules、Codex采用AGENT.md,团队需要同步多份内容高度重合的文档,维护成本成倍上涨。同时AI无法完整理解项目整体架构,前后端代码上下文割裂、私有组件不识别、编码规范不清晰、无法自主构建自测等问题,导致AI生成代码返工率极高,大幅拉低开发效率。
1372 0
|
开发工具 Android开发 iOS开发
flutter 环境配置
flutter 环境配置
3156 162
|
缓存 Android开发 开发者
Flutter环境配置完成后,如何在Android设备上运行Flutter应用程序?
Flutter环境配置完成后,如何在Android设备上运行Flutter应用程序?
3248 62
|
Dart 测试技术 开发工具
Dart开发环境搭建-Windows
Dart开发环境搭建-Windows
1205 7
|
Linux 开发工具 Android开发
Flutter之搭建环境
Flutter之搭建环境
|
存储 缓存 JavaScript
Flutter笔记:关于WebView插件的用法(上)
Flutter笔记:关于WebView插件的用法(上)
5090 5
|
安全 算法 Java
java https 请求 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
java https 请求 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
17862 0
|
Dart IDE 开发工具
Flutter Version Manager (FVM): Flutter的版本管理终极指南
Flutter Version Manager (FVM): Flutter的版本管理终极指南
8144 1