Javatpoint Logo
Javatpoint Logo

Install Node.js on Linux/Ubuntu/CentOS

We can easily install Node.js on linux/ubuntu/centOS/fedora/linuxmint etc. To install Node.js on Linux (Ubuntu) operating system, follow these instructions:

1) Open Ubuntu Terminal (You can use shortcut keys (Ctrl+Alt+T).

Install Node.js on linux/ubuntu/centos 1

2) Type command sudo apt-get install python-software-properties

3) Press Enter (If you have set a password for your system then it will ask for the password)

4) Type the password and press enter

Install Node.js on linux/ubuntu/centos 2

5) Type command sudo apt-add-repository ppa:chris-lea/node.js

6) Press Enter

Install Node.js on linux/ubuntu/centos 3

7) Again Press Enter to continue

8) Type command sudo apt-get update ( Wait for sometime)

Install Node.js on linux/ubuntu/centos 4

9) Type command sudo apt-get install nodejs npm

Install Node.js on linux/ubuntu/centos 5

10) Type command sudo apt-get install nodejs

Install Node.js on linux/ubuntu/centos 6

Installation completed. Now you can check the version of Node by node --version

Install Node.js on linux/ubuntu/centos 7

Check the version of npm by npm -v

Install Node.js on linux/ubuntu/centos 8

Now you can check the node.js in your installed program list by typing this command

dpkg --get-selections

Install Node.js on linux/ubuntu/centos 9



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA