To update all packages that are returned by the npm outdated
command to their latest version:
$ npm outdated | tail -n +2 | tr -s ' ' | cut -d ' ' -f1 | xargs -I {} npm up {}
npm outdated
: Lists all packages installed that are not at their latest version.