To update the Node Package Manager (NPM) to the latest stable version.
Install N:
sudo npm cache clean -f
sudo npm install -g n
Run N and request the latest stable version
sudo n stable
To update the Node Package Manager (NPM) to the latest stable version.
Install N:
sudo npm cache clean -f
sudo npm install -g n
Run N and request the latest stable version
sudo n stable