2015-06-16 263 views
1

一个简单的问题:Dart Editor + SDK(解压后下载)安装/移动到(/ Applications或...)的常用文件夹是什么?Dart在Mac/OSX上的安装/设置

谢谢。

+1

有自制程序的支持,那岂不是更容易使用此http://news.dartlang.org/2014/10/dart-launches-support-for -homebrew.html?m = 1我不是Mac用户,并且没有自己使用它。 –

回答

2

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

brew tap dart-lang/dart 
brew install dart 

需要注意的是,通常你只有做brew install X一部分,但飞镖是special case

+0

好的,谢谢。这是否安装完整的软件包(=与Dart Editor + SDK相同)还是只安装SDK? – user1135780

+0

这只会安装SDK,根据您传递给Homebrew的标志Dartium浏览器。如果你想要Dart Editor,你可以通过'brew cask install darteditor'或[Dart网站](https://www.dartlang.org)[Caskroom](http://caskroom.io/)获得它。 /下载/)。 *注意力不足*:在积极开发下,Dart编辑器[不再](http://news.dartlang.org/2015/04/the-present-and-future-of-editors-and.html)。 – jreut

1
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 

其他信息:https://www.dartlang.org/downloads/mac.html