npm current version code example
Example 1: update npm
npm install -g npm@latest
Example 2: find npm version
npm --version
Example 3: npm get version
npm view <package> version
Example 4: npm latest version windows
npm-windows-upgrade --npm-path "C:\nodejs"
Example 5: instalar ultima version de npm
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -