You can use npm-check-updates to upgrade dependencies in package.json
to the latest version.
Show any new dependencies for the project:
npx npm-check-updates
Upgrade all dependencies:
npx npm-check-updates -u
The command modifies package.json
, but does not run the installation command. Follow up with npm install
or whatever package manager you use.
Read more about how dependency updates are determined.
You can also run Doctor Mode to run tests will upgrading.