Issue
I have executed the following command in Ubuntu 14.04 64-bit.
sudo apt-get update
sudo apt-get install nodejs modejs-legacy npm
npm -v
1.3.10
nodejs -v
v0.10.25
These are older than the recommended versions for AngularJS 2.
Why does apt-get download old version? How do I update to newer versions?
Solution
Debian/Ubuntu has old version in their package manager, you have to use custom PPA repository as stated here:
https://github.com/nodesource/distributions/blob/master/README.md#debinstall
Setup it with:
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
Then install with Ubuntu:
sudo apt-get install --yes nodejs
Answered By - michelem Answer Checked By - Gilberto Lyons (WPSolving Admin)