In Ubuntu 18.04 How to Install Node Js & NPM

In Ubuntu 18.04 How to Install Node Js & NPM . In this article , we’ll show you how to install Node Js & NPM on Ubuntu. NPM is a node package manager. NPM is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently. It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop node programs.

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.)
  • Node.js uses JavaScript on the server

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

Test Version

After complete the installation process. We need to check the version.

Check the installed Node js version :

nodejs  -v

Check the Installed NPM version :

npm -v

Conclusion

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.

Spread the love

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *