title: How to downgrade Dart with Homebrew
body: <p>I'm on a Mac and I upgraded to Dart 2.8 from Dart 2.7.1 by running</p>
  
  <pre><code>brew upgrade dart
  </code></pre>
  
  <p>as it describes in the <a href="https://dart.dev/get-dart" rel="nofollow noreferrer">documentation</a>.</p>
  
  <p>However, version 2.8 contains some breaking changes for the Aqueduct framework, so I want to downgrade to Dart 2.7.2.</p>
  
  <p>I tried </p>
  
  <pre><code>brew install dart@2.7.2
  </code></pre>
  
  <p>but got</p>
  
  <blockquote>
    <p>Error: No available formula with the name "dart@2.7.2" </p>
  </blockquote>
  
  <p>I also tried</p>
  
  <pre><code>brew search dart
  </code></pre>
  
  <p>but only got</p>
  
  <blockquote>
    <p>dart-lang/dart/dart ✔<br>
    dart-lang/dart/dart-beta<br>
    dart-lang/dart/dart@1<br>
    dart-lang/dart/dart@2<br>
    dartsim  </p>
  </blockquote>
  
  <p>There is no option to select a lower 2.x version.</p>
  
  <p>How do I downgrade?</p>