title: How to upgrade npm and node? How to install n?
body: <p>From here <a href="http://theholmesoffice.com/node-js-fundamentals-how-to-upgrade-the-node-js-version/" rel="nofollow">http://theholmesoffice.com/node-js-fundamentals-how-to-upgrade-the-node-js-version/</a> i am trying to upgade my 'node' and 'npm'.</p>
  
  <p>For this i need to install 'n';</p>
  
  <p>But with <code>sudo npm install -g n</code></p>
  
  <p>I get error : </p>
  
  <pre><code>Error : failed to fetch from registry: n
  </code></pre>
  
  <p>How to resolve this problem and upgrade npm and node?</p>