title: nodejs 4.2.6 not getting updated to latest version
body: <p>I installed Node and npm as they are required to install angular cli.<br>
  Now, if I type this command:</p>
  
  <pre><code>npm install -g angular-cli
  </code></pre>
  
  <p>I get this message in terminal:</p>
  
  <blockquote>
    <p>ERROR: npm is known not to run on Node.js v4.2.6 Node.js 4 is supported but the specific version you're running has a bug known to break npm. Please update to at least 4.7.0 to use this version of npm. You can find the latest release of Node.js at <a href="https://nodejs.org/" rel="nofollow noreferrer">https://nodejs.org/</a></p>
  </blockquote>
  
  <p>I also followed <a href="https://stackoverflow.com/questions/46360567/error-npm-is-known-not-to-run-on-node-js-v4-2-6">this</a> link, but still the issue is not resolved.</p>
  
  <p>I tried removing node, npm and then reinstalling, updating node according to all the ways I found on internet, but still the version(4.2.6) is same.</p>
  
  <p>I don't understand what I am doing wrong as I am new to Linux.</p>