current version of npm code example
Example 1: update npm
npm install -g npm@latest
Example 2: npm get version
npm view version
Example 3: npm latest version windows
npm-windows-upgrade --npm-path "C:\nodejs"
npm install -g npm@latest
npm view version
npm-windows-upgrade --npm-path "C:\nodejs"