Update global top level npm packages
npm update -g updates all global packages and their dependencies, see https://github.com/npm/npm/issues/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