Npm can install itself. Just use npm install with the global flag -g, to overwrite the version of npm currently installed.
Here's an example. (Change 5.4.0 to whichever version you want.)
npm install [email protected] -g If you switch versions later in nvm, the npm version will change as well, so it's easy to undo this action.