You can try nodist npm latest
nodist npm latest
Nodist manages npm versions as well as node versions.