I\'ve been using NVM to install the latest versions of nodeJS for my node work. It works totally fine for installing separate versions and switching between them. It also in
nvm now has a command to update npm. It's nvm install-latest-npm or npm install --latest-npm.
nvm install-latest-npm
npm install --latest-npm