Install Node Js from Ubuntu Packages

Install Node Js from Ubuntu Packages

Introduction

Node.js is a JavaScript platform for general-purpose programming that allows users to build network applications quickly. By leveraging JavaScript on both the front- and back-end, development can be more consistent and designed within the same system.

Node JS is required to run the UI of the Explorer and interact with coin to fetch the data and insert the same into Mongo DB.

There are several ways to install node js

1. Binary Installation. To install Node JS from Binary  click here

2. Installation from Source Code. To install Node JS from Source Code Click Here

3. Installation from Ubuntu Packages.

we are going to install Node JS from Installation from Ubuntu Packages.

 Install Node.js with Ubuntu Package Manager

Step 1: To install Node.js, execute the following command in your terminal

sudo apt-get install nodejs

Step 2: install the Node package manager

sudo apt-get install npm

Step 3: Create a symbolic link for a node

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

Step 4: Check the version

$ node -v

v0.10.25

$ npm -v

1.3.10

Install Node.js with Maintained Ubuntu Packages

Step 1: Add the Node.js-maintained repositories to your Ubuntu package source list

curl -sL https://deb.nodesource.com/setup | sudo bash –

Step 2: install Node.js with apt-get

sudo apt-get install nodejs

Step 3: create a symbolic link for the node

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

Step 4:  Check the version

$ node -v

v0.10.44

$ npm -v

2.15.0

If you see the versions displayed for node and npm, you have successfully compiled Node.js with npm from Packages.

Facebook Comments
Show Buttons
Hide Buttons