CLI options and exit codes
The outdated command checks the npm project in the current folder and prints a table of dependency problems. Its options choose what to check, how to report it and which problems fail the run.
outdated [options]
Options
--cwd <dir>— Project folder (default:.)--stale-after <months>— Months without a release before a package is stale (default:6)--include <types>— Dependency types to check:prod,dev,optional, comma-separated (default: all)--ignore <pkgs>— Comma-separated package names to skip entirely--concurrency <n>— Parallelnpm viewlookups (default:6)--json— Output machine-readable JSON--all— Show ok packages in the table too (by default only problems are shown)--fail-on <list>— Exit 1 when any ofstale,deprecated,outdated,unknownis found (default: none)--help, -h— Display help message--version, -v— Display version number
Exit codes
0— Success, and no--fail-oncondition met1— A--fail-oncondition was met2— Usage or runtime error (nopackage.json, npm not found, invalid options,npm outdatedfailure)