How to use PPA repository (only for Linux) In NPM
Write the following command to install Node.js and npm.
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
How to Update NPM?
NPM (Node Package Manager) is the default package manager for Node.js and is written entirely in JavaScript. It manages all the packages and modules for Node.js and includes a command-line client, npm
. NPM is installed automatically with Node.js.