View npm version
npm -v
Install the latest version of NPM
npm install -g npm@latest
View global packages that have updates
npm outdated -g --depth=0
Update all global packages
npm update -g
Update a single global package
npm update -g <package_name>
Update local packages
npm update
Update a specific local packages
npm update <package_name>