Skip to content

npm

Updating Local Project Packages

Navigate to the root directory of your project and ensure it contains a package.json In your project root directory, run:

npm update

To test the update, run the outdated command. There should not be any output.

npm outdated

Updating Globally-Installed Packages

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

Comments