Aamu Aamu - 1 year ago 126
Node.js Question

Install latest nodejs version in ubuntu 14.04

This is the way I installed nodejs in ubuntu 14.04 LTS:

sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get install nodejs

When I checked the node version with this:

node -v

I get this


But the latest version is 4.2.6 and 5.5.0. How can I get the latest or update version?

Answer Source
sudo apt-get install curl

For Node.js v4

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

Alternatively, for Node.js v5:

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download