How to install Node.js on Ubuntu 14.04/15.04

Share:

The official Node.js site provides a windows installer for a hassle free installation. Alternatively, in the case of Linux and its various flavours, there is no specific install instruction. And the resources on the internet can provide you with too much of information and it would take some time to narrow down to what’s needed. To save your time, I have listed the required commands below:

Bam! It’s done. It was that simple.

Let’s test if the installation was successful by writing a Hello World program. Below is the code to create a simple http server:

Open up a browser and navigate to http://localhost:8080. If everything is okay, you should see “Hello, World!”.

1 Comments

Leave a Comment.