npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
-
Either use the shell script or windows batch here instead.
The shell script is forked from https://gist.github.com/othiym23/4ac31155da23962afd0e. See the discussion there.
-
Or use https://github.com/dylang/npm-check to interactively select which global/local packages to update
# install npm -g i npm-check # interactive update of global packages npm-check -u -g # interactive update for a project you are working on npm-check -u