outdated Verified current stable Not installed? Package Management

Outdated / Check Outdated Packages

Check Outdated Packages

Checks for packages within your project that are outdated.

$
Terminal
pnpm outdated

When To Use

During regular maintenance to ensure dependencies are up-to-date and secure.

Pro Tip

Combine with `--filter` to target specific packages, minimizing false positives.

Anatomy of Output

Understanding the result

Package: example-package Package Name

Name of the outdated package.

Current: 1.0.0 Current Version

Installed version of the package.

Wanted: 2.0.0 Wanted Version

Version available for update.

Latest: 2.1.0 Latest Version

Most recent version released.

Troubleshooting

Common pitfalls

ERR_PNPM_OUTDATED_ENV: Unable to determine outdated packages

Solution: Ensure the lock file is correct by running `pnpm install`.

ERR_PNPM_PACKAGE_NOT_FOUND: Unable to find specified package

Solution: Verify that the package exists in the registry.

ERR_PNPM_LOCKFILE_MISMATCH: Your version mismatches with the lockfile

Solution: Run `pnpm install` to resolve lockfile mismatches.

Command Breakdown

What each part is doing

pnpm
Base Command
The executable that performs this operation. Here it runs Outdated before the shell applies any redirect operators.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.