#Installing legacy versions of npm
sudo npm install -g [email protected]
Note: If you run without sudo
then npm will start uninstalling itself and then exit as it doesn't have su permissions. If you then try to do npm install
, it is longer available.