Ubuntu - Node.js

Node.js is a popular JavaScript framework used for developing server side applications. In this chapter, we will see how to get Node.js installed on Ubuntu.

Following are the steps to get Node.js installed.

Step 1 − Run the following command.

sudo apt-get install nodejs

This will install all the necessary packages for Node.js

Install Necessary Package

Next, we need to install the Node package manager which is required for Node.js applications.

Step 2 − Run the following command.

sudo apt-get install npm

All the necessary packages for the node package manager will be installed.

Necessary Packages

Step 3 − Next, create a symbolic link to the Node.js folder. Then, run the Node –v command and npm –v to see the Node and npm version installed.

Create Symbolic Link
Kickstart Your Career

Get certified by completing the course

Get Started