Updating packages with npm in JavaScript

To update packages use the following command:

npm update

Given this command, npm will check all packages for their newer versions, and if it finds newer versions that match the package version limits set in package.json, it will install them.

You can also update one package:

npm update lodash

Try to update all packages you have installed.

Try to update one of the packages you have installed.

enru