title: pub global activate command - $HOME/.pub-cache/bin not on path
body: <p>I was trying to install dart2 recently, but when I try to install <code>pub global activate stagehand</code>, it comes with a warning. </p>
  
  <blockquote>
    <p>Warning: Pub installs executables into <code>$HOME/.pub-cache/bin</code>, which is not on your path.</p>
  </blockquote>
  
  <p>You can fix that by adding this to your shell's config file (<code>.bashrc</code>, <code>.bash_profile</code>, etc.):</p>
  
  <pre><code>export PATH="$PATH":"$HOME/.pub-cache/bin"
  </code></pre>
  
  <p>so i went to my <code>.bash_profile</code> file and added the above, and the file looks like this:</p>
  
  <pre><code>export PATH=/users/kevinau/dart/flutter/bin:$PATH
  export PATH="$PATH":"$HOME/.pub-cache/bin"
  </code></pre>
  
  <p>but then I run <code>webdev</code> and the command is still not found.</p>
  
  <p>can anyone walk me thru how to fix this?</p>
  
  <p>I tried echo <code>$PATH</code> and return the below:</p>
  
  <pre><code>/users/myspace/dart/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/sbin/.pub-cache/bin
  </code></pre>
  
  <p>but how do I fix it?</p>