outdated Verified current stable Not installed? Package Management

Outdated / Check Outdated Dependencies Workspace

Check Outdated Dependencies Workspace

Checks all dependencies in a workspace for outdated versions.

$
Terminal
pnpm outdated -r

When To Use

In a multi-package repository to update all dependencies across packages.

Pro Tip

Use `--interactive` for a guided upgrade decision process within the workspace.

Anatomy of Output

Understanding the result

Workspace: my-monorepo Workspace Name

Identifies the specific workspace being analyzed.

Package: example-package Current: 1.0.0, Wanted: >=2.0.0

Package details with version range.

Total Outdated: 5 Summary

Total count of outdated packages across the workspace.

Troubleshooting

Common pitfalls

ERR_PNPM_NO_WORKSPACE: No workspace found in the current directory

Solution: Run the command in the root of a pnpm workspace.

ERR_PNPM_CHECK_FAILED: Check for outdated versions failed

Solution: Review package.json files for issues or additive errors.

ERR_PNPM_WORKSPACE_DEPENDENCIES_NOT_INCLUDED: Not all dependencies included

Solution: Ensure all nodes of the workspace are properly defined in the configuration.

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.
-r
r| recursive
The value supplied for r| recursive.
-r
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.