npm stable version code example
Example 1: npm version
npm install -g npm@latest
Example 2: npm latest version windows
npm-windows-upgrade --npm-path "C:\nodejs"
npm install -g npm@latest
npm-windows-upgrade --npm-path "C:\nodejs"