Sujay Kundu

Full Stack Web Developer, Blockchain, Security

Posted by : at

Category : blog

How to install node in ubuntu 14.04 LTS

Node.js is an open-source, cross-platform JavaScript runtime environment for developing a wide variety of tools and applications. Node.js runs on most operating systems, including Linux, OSX and Windows.

There are several different ways you can install Node.js on your server. This guide will cover these different options including:

  • APT package manager
  • PPA (Personal Package Archive)
  • NVM (Node Version Manager)

Install using APT Package manager :

To install Node.js, type the following command in your terminal:

sudo apt-get install nodejs

Then install the Node package manager, npm:

sudo apt-get install npm

Create a symbolic link for node, as many Node.js tools use this name to execute.

sudo ln -s /usr/bin/nodejs /usr/bin/node

Now we should have both the Node and npm commands working:

$ node -v
v0.10.25
$ npm -v
1.3.10

Using NVM to install a particular node version

  1. Run apt-get update:
sudo apt-get update 

2.