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 installs the latest version of NPM within each local …/bin folder along with the node binary. However, there doesn’t seem to be any way to switch the version of NPM that I’m using (or at least I can’t figure it out).
The only solution I can think of myself is to delete the binary that it’s defaulting to (which is the NPM that was installed when I first installed node with NVM), and in its place to put the latest NPM binary. However, I’m wondering if there are any better ways to go about doing this.