brew install dart 安装dart 失败 改为手工安装方式

https://storage.googleapis.com/dart-archive/channels/stable/release/2.4.1/sdk/dartsdk-macos-x64-release.zip

下最新版

brew tap dart-lang/dart
brew edit dart

进去看看最新版是什么 下面127.0.0.1 位置是你的最新版url,手工下载后你丢到那个网站都可以,因为我装有apache,所以直接丢到根目录,不要下载别的,因为下面sha256要验证文件

class Dart < Formula
  desc "The Dart SDK"
  homepage "https://www.dartlang.org/"

  version "2.4.1"
  if Hardware::CPU.is_64_bit?
    url "http://127.0.0.1/dartsdk-macos-x64-release.zip"
    sha256 "62006127bd3acd1b7eb2e4fc7baed061eb19b80c4ba4af481db5244a081fff3e"
  else
    url "https://storage.googleapis.com/dart-archive/channels/stable/release/2.4.1/sdk/dartsdk-macos-ia32-release.zip"
    sha256 "3591578902f3b3ee155aa90bf893f3d0b50fd12567454a8f980440fa8dd1ff23"
  end

 

localhost:~ hzq$ brew install dart
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from 925ec737f to 72c8a04c8.
No changes to formulae.

==> Installing dart from dart-lang/dart
==> Downloading http://127.0.0.1/dartsdk-macos-x64-release.zip
######################################################################## 100.0%
==> Caveats
Please note the path to the Dart SDK:
  /usr/local/opt/dart/libexec
==> Summary
?  /usr/local/Cellar/dart/2.4.1: 387 files, 344.4MB, built in 11 seconds

你可能感兴趣的:(app程序)