npm command to install latest version code example
Example 1: update npm
npm install -g npm@latest
// for global install
Example 2: npm latest version windows
npm-windows-upgrade --npm-path "C:\nodejs"
npm install -g npm@latest
// for global install
npm-windows-upgrade --npm-path "C:\nodejs"