Check for outdated dependencies
Read-only
What do risk levels mean?
- Read-only
- Inspects state without changing anything.
- Low risk
- Reversible with a routine follow-up command.
- Medium risk
- Changes state; undo path documented.
- Destructive
- Deletes or overwrites; confirmation required.
Compares installed and declared dependency versions with registry releases without modifying package.json, the lockfile, or node_modules.
nodenpmupdates
Commands
Show current, wanted, and latest versions for outdated packages
npm outdatedVerification
npm outdatedOutdated packages are listed, or no rows appear when dependencies are current.
Undo
Not undoable
This recipe only compares dependency versions and changes nothing.
Pitfalls
- npm normally exits with a nonzero status when outdated packages are found; this is a result, not necessarily a command failure.
- Registry access and configured authentication may be required for private packages.