How to use cache cleaning & stable installation (only for Linux) In NPM
Write the following command to update Node.js to a stable module.
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
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.