Update the system
sudo apt-get update
sudo apt-get upgrade
Download the source
curl -sL https://deb.nodesource.com/setup | sudo bash –
Install it
sudo apt-get install nodejs
Check version number
nodejs -v
v0.10.40
Run it
nodejs
>console.log(‘hello mojo!’);
hello mojo
(Visited 572 times, 1 visits today)