// @ followed by your desired version npm install -g npm@latest npm install -g npm@6.5
// for non-global npm i npm@6.5