After install npm and node js on ubuntu, we will run the simple command check the version of installed node js & npm on ubuntu system.
What is Node.js?
- It is an open source server environment
- It is free
- Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
What Can Node.js Do?
- It can generate dynamic page content
- It can create, open, read, write, delete, and close files on the server
- Node.js can collect form data
- It can add, delete, modify data in your database
Install Node js & NPM On Ubuntu
before install 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 Python software libraries. Before install node js & npm on ubuntu, first install PPA in our ubuntu system. Using this 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 in 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 complete the installation process. We need to check the version.
Check the installed Node js version :
Check the Installed NPM version :
You have successfully installed Node js & NPM on Ubuntu 18.04. You are now ready to start deploying your applications and use Node js and NPM.
If you have any questions or thoughts to share, use the comment form below to reach us.