xxxxxxxxxx
npm install -g npm@latest
#may require the use of sudo depending on your distro
sudo npm install -g npm@latest
xxxxxxxxxx
//Updating local packages
cd /path/to/project
npm update
//Updating globally-installed packages
npm install npm@latest -g
npm update -g
//Updating a single global package
npm update -g <package_name>
//Determining which global packages need updating
npm outdated -g --depth=0