如何安装 Dart v2? [英] How Do I Install Dart v2?

查看:20
本文介绍了如何安装 Dart v2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经浏览了 Dart 官方网站.他们深入探讨了开发"频道和稳定"频道,但对如何实际安装 SDK 版本一无所知.也没有关于当前稳定版和开发版的信息.

Ive looked all over the official Dart site. They go into great depth about 'dev' channels and 'stable' channels but no clue whatsover about how to actually install a version of the SDK. There is no information about the current stable and dev versions either.

显然我错过了隐藏在普通网站中的东西.我想尝试一些官方的 angulardart 组件库,但构建器需要 Dart 版本 2 - 但我不知道如何获得.

Clearly I have missed something hiding in plain site. I want to try out some official angulardart component libraries but the builder requires Dart version 2 - but I have no idea how to get that.

谁能让我摆脱痛苦,告诉我我是怎么变成白痴的

Can someone put me out of my misery, and tell me how I'm being an idiot

谢谢

推荐答案

可以找到 dart v2(目前只有一个开发频道版本)的安装说明 此处.总结一下,

Installation instructions for dart v2 (which currently only has a dev channel release) can be found here. To summarize,

brew tap dart-lang/dart
brew install dart --devel

如果您是从 Dart 1 升级,请参阅如何升级到 Dart 2?

If you are upgrading from Dart 1 see, How to upgrade to Dart 2?

访问 此处 获取图形安装程序,或者如果您安装了 Chocolatey,请执行以下操作:>

Visit here for the graphical installer or if you have Chocolatey installed do:

choco install dart-sdk -version 2

Linux

sudo apt-get update
sudo apt-get install apt-transport-https
sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo apt-get update
export PATH=/usr/lib/dart/bin:$PATH
sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_unstable.list > /etc/apt/sources.list.d/dart_unstable.list'
sudo apt-get install dart

这篇关于如何安装 Dart v2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆