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-nodejs-on-linux1.png

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-nodejs-on-linux2.png

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

6) Press Enter

install-nodejs-on-linux3.png

7) Again Press Enter to continue

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

install-nodejs-on-linux4.png

9) Type command sudo apt-get install nodejs npm

install-nodejs-on-linux5.png

10) Type command sudo apt-get install nodejs

install-nodejs-on-linux6.png

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

install-nodejs-on-linux7.png

Check the version of npm by npm -v

install-nodejs-on-linux8.png

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

dpkg --get-selections

install-nodejs-on-linux9.png

Related Articles

Comments 0