Why do I get old versions of nodejs and npm when installing with apt-get?
<p>I have executed the following command in Ubuntu 14.04 64-bit. </p>

<pre><code>sudo apt-get update
sudo apt-get install nodejs modejs-legacy npm
</code></pre>

<p>I have the versions</p>

<pre><code>npm -v
1.3.10

nodejs -v
v0.10.25
</code></pre>

<p>These are older than the recommended versions for AngularJS 2.</p>

<p>Why does apt-get download old version?
How do I update to newer versions?</p>