【发布时间】:2015-09-01 19:09:23
【问题描述】:
Dart Editor + SDK(解压缩下载后)安装/移动到的常用文件夹是什么(/Applications 或 ...)?
【问题讨论】:
-
有自制支持,用这个不是更方便吗?news.dartlang.org/2014/10/…我不是Mac用户,自己也没用过。
标签: dart
Dart Editor + SDK(解压缩下载后)安装/移动到的常用文件夹是什么(/Applications 或 ...)?
【问题讨论】:
标签: dart
如果你使用brew安装flutter,那么Dart的SDK可以在下面找到:
/usr/local/Caskroom/flutter/<version>/flutter/bin/cache/dart-sdk
【讨论】:
Please note the path to the Dart SDK:
/usr/local/opt/dart/libexec
--with-dartium:
To use with IntelliJ, set the Dartium execute home to:
/usr/local/opt/dart/Chromium.app
【讨论】:
$ brew tap dart-lang/dart
$ brew install dart
然后:
$ brew info dart
你会看到:
/usr/local/opt/dart/libexec
【讨论】:
$ 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
【讨论】:
我建议你通过Homebrew 安装 Dart。 Homebrew 是一款制作精良的软件,您可以使用它来安装很多您现在或将来可能需要的东西。而且使用简单;要安装 dart,您所要做的就是
brew tap dart-lang/dart
brew install dart
请注意,通常您只需要执行 brew install X 部分,但 Dart 是 special case。
【讨论】:
brew cask install darteditor 或Dart website 获得它。 注意事项:Dart 编辑器 no longer 正在积极开发中。