title: Node using wrong version after Brew Install
body: <p>I'm using a Macbook with the latest macOS (10.12.3), and I installed Homebrew by running:</p>
  
  <pre><code>/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  </code></pre>
  
  <p>After that I installed node:</p>
  
  <pre><code>brew install node
  </code></pre>
  
  <p>And tried to upgrade it:</p>
  
  <pre><code>&gt; brew upgrade node
  &gt; Error: node 7.8.0 already installed
  </code></pre>
  
  <p>I got an error saying the version 7.8.0 is already installed, that was expected since I had just installed the most recent version.</p>
  
  <p><strong>Problem:</strong> on the terminal I ran:</p>
  
  <pre><code>&gt; node --version
  &gt; v4.4.5
  </code></pre>
  
  <p>and got back an old version that apparently was already installed. Also, when I install some new package through <code>npm</code> I get a warning saying the package requires an newer version of node.</p>
  
  <p><strong>Question:</strong> I seem to have both versions of node installed on my mac, how can I use the most current one? And how can I uninstall all other older node versions?</p>
  
  <p>Thank you very much for your help!</p>