在Mac / OSX上进行Dart安装/设置

时间:2015-06-16 19:29:13

标签: dart

一个简单的问题:Dart编辑器+ SDK(解压缩下载后)安装/移动到(/ Applications或...)的常用文件夹是什么?

感谢。

3 个答案:

答案 0 :(得分:6)

请遵循https://www.dartlang.org/tools/sdk

$ brew tap dart-lang/dart
$ brew install dart

然后:

$ brew info dart

您将看到: /usr/local/opt/dart/libexec

答案 1 :(得分:5)

参阅https://dart.dev/get-dart

$ brew tap dart-lang/dart
$ brew install dart

安装完成后,

$ brew info dart

给出结果

brew info dart
dart-lang/dart/dart: stable 2.7.0, devel 2.8.0-dev.2.0
The Dart SDK
https://www.dartlang.org/
/usr/local/Cellar/dart/2.7.0 (474 files, 463.4MB) *
  Built from source on 2020-01-15 at 16:53:13
From: https://github.com/dart-lang/homebrew-dart/blob/master/dart.rb
==> Options
--devel
    Install development version 2.8.0-dev.2.0
==> Caveats
Please note the path to the Dart SDK:
  /usr/local/opt/dart/libexec

答案 2 :(得分:3)

我建议您通过Homebrew安装Dart。 Homebrew是一款制作精良的软件,您可以使用它来安装现在或将来可能需要的许多东西。它使用起来很简单;要安装飞镖,你所要做的就是

brew tap dart-lang/dart
brew install dart

请注意,通常您只需执行brew install X部分,但Dart是special case