Update NPM to Latest Stable Version

To update the Node Package Manager (NPM) to the latest stable version.

Install N:

sudo npm cache clean -fsudo npm install -g n

Run N and request the latest stable version

sudo n stable