outdated Verified current stable Not installed? Package Management

Outdated / Print Compatible Versions

Print Compatible Versions

Evaluates and lists compatible versions for installed packages in PNPM.

$
Terminal
pnpm outdated --compatible

When To Use

When resolving version conflicts during dependency upgrades in complex projects.

Pro Tip

Using `--json` output can simplify automated handling of compatibility results within CI pipelines.

Anatomy of Output

Understanding the result

babel-loader@8.1.0 (compatible: 8.2.0, 8.2.1) Package Compatibility

Shows installed package with its compatible versions.

axios@0.21.1 (compatible: 0.21.2) Package Compatibility

Lists compatible versions next to installed version.

Troubleshooting

Common pitfalls

Error: No compatible versions found.

Solution: Verify that the package has viable updates available.

Error: Command not recognized.

Solution: Ensure correct syntax and check for typos in the command.

Error: Network issues prevent fetching version data.

Solution: Check your connection and ensure the registry is accessible.

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.
--compatible
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.