Updating local and global packages you downloaded from the registry helps keep your code and tools stable, usable, and secure.
We recommend regularly updating the local packages your project depends on to improve your code as improvements to its dependencies are made.
outdatedcommand. There should not be any output.
npm install [email protected] -g
To see which global packages need to be updated, on the command line, run:
npm outdated -g --depth=0
To update a single global package, on the command line, run:
npm update -g <package_name>
To update all global packages, on the command line, run:
npm update -g