【问题标题】:What's the usual folder where the Dart Editor and SDK (after unzipped the download) are installed/moved to?在 Mac/OSX 上安装 Dart
【发布时间】:2015-09-01 19:09:23
【问题描述】:

Dart Editor + SDK(解压缩下载后)安装/移动到的常用文件夹是什么(/Applications 或 ...)?

【问题讨论】:

标签: dart


【解决方案1】:

如果你使用brew安装flutter,那么Dart的SDK可以在下面找到:

/usr/local/Caskroom/flutter/<version>/flutter/bin/cache/dart-sdk

相关问题:https://stackoverflow.com/a/50411384/2016436

【讨论】:

    【解决方案2】:
    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

    【讨论】:

      【解决方案3】:

       请关注https://dart.dev/get-dart

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

      然后:

      $ brew info dart
      

      你会看到: /usr/local/opt/dart/libexec

      【讨论】:

        【解决方案4】:

        参考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
        

        【讨论】:

          【解决方案5】:

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

          brew tap dart-lang/dart
          brew install dart
          

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

          【讨论】:

          • 好的,谢谢。这会安装完整的包(= 与 Dart 编辑器 + SDK 下载相同)还是仅安装 SDK?
          • 这只会安装 SDK,并根据您传递给 Homebrew 的标志,安装 Dartium 浏览器。如果你想要 Dart 编辑器,你可以通过Caskroombrew cask install darteditorDart website 获得它。 注意事项:Dart 编辑器 no longer 正在积极开发中。
          猜你喜欢
          • 2010-11-11
          • 2012-10-31
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-08-23
          • 2013-03-27
          • 2012-01-11
          • 2012-04-09
          相关资源
          最近更新 更多