When using tools like n
or nvm
it's often a bit annoying to have the npm
version continually reset to whichever was bundled with the release being switched to.
Here's an alternative: having an npm installed separately.
This is especially useful if you want to try out npm@3
neatly.
sudo mkdir /opt/npm3