Issue
I am trying to install npm
using sudo npm install -g npm
but I am getting below error.
Solution
Are you trying to upgrade npm to the latest? remove the current install on the system first:
sudo apt-get purge nodejs npm
then follow instruction for the version you need here: (https://github.com/nodesource/distributions#debinstall)
Answered By - runwuf Answer Checked By - Marie Seifert (WPSolving Admin)