In this article we will cover how to implement how to install node js and npm ubuntu. you'll learn how to install node js on Ubuntu. you can understand the concept of installing node js via the package manager. if you want to see an example of the installation of node js on Linux then you are in the right place. Here, Creating a basic example of nodejs and npm installation in Ubuntu.
Install Node js & NPM On Ubuntu
before installing the Node js & NPM on Ubuntu. First update the apt package:
sudo apt-get update
sudo apt-get upgrade
Add Node.js PPA
PPA (Personal Package Archives) is a Python software library. Before installing node js & npm on Ubuntu, first, install PPA in our Ubuntu system. Using the below commands.
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
Now Install Node.js and NPM On Ubuntu
After adding PPAs to our system. we need to run the below command for installing node js & npm on Ubuntu.
For Install Node js on Ubuntu:
sudo apt-get install nodejs
For Install NPM on Ubuntu
sudo apt-get install npm
After completing the installation process. We need to check the version.
Check the installed Node js version:
Check the Installed NPM version :
I hope it can help you...