You may have heard the word Node.js. If you don’t know what Node.js is; Node.js is a platform built upon the Chrome’s JavaScript run-time for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. It is perfect for data-intensive, real-time applications that run across distributed devices.You may now want to know how-to install Node.js, so let me show you how-to install Node.js on Ubuntu.

I’ll be using a Digital Ocean VPS, running Ubuntu 12.04.3 x64 for this tutorial.

We will first do a package repository update:

sudo apt-get update

Next, we will install some needed packages, like so:

sudo apt-get install python-software-properties software-properties-common python g++ make

Okay, now we’ll add a Node.js PPA repository, which we will use to install Node.js shortly:

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

Now let’s update the package lists, since we just added the repository:

sudo apt-get update

We’ll now finally install Node.js:

sudo apt-get install nodejs

Before we congratulate ourselves for installing Node.js, we will check to make sure it’s installed. Execute the following command:

node -v

If Node,js is installed, you will see something like this:

node -v v0.10.26

You can now congratulate yourself.