Monday, June 15, 2020

How To Install Node.js and Npm In Ubuntu Server

Install Node.js & Npm


What Is Node 
Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser.

What Is NPM 
npm is a package manager for the JavaScript programming language. It is the default package manager for the JavaScript runtime environment Node.js. It consists of a command line client, also called npm, and an online database of public and paid-for private packages, called the npm registry


Step 1 :- Update System

# sudo apt-get update 

Step 2 :- Add Node.js APT Repository 

# sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
# curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

Step 3 :- Install Node.js 12 On Ubuntu

# sudo apt-get install -y nodejs

Step 4 :- Version Information.

# node --version 
   v12.10.0

# npm --version 
   v6.10.3



No comments:

Post a Comment

testing