outdated Verified current stable Not installed? Package Management

Outdated / List Outdated Packages Globally

List Outdated Packages Globally

Lists outdated packages installed globally with PNPM.

$
Terminal
pnpm outdated -g

When To Use

When preparing to upgrade libraries before deploying to production.

Pro Tip

Use `--filter` to limit outdated checks to specific packages or workspaces, optimizing performance.

Anatomy of Output

Understanding the result

Package Current Wanted Latest Location Header Row

Describes the columns of package data.

babel-loader 8.1.0 8.2.0 8.2.1 ~/.pnpm-global/5 Example Outdated Package

Shows package name, current, wanted, and latest versions along with the install location.

Troubleshooting

Common pitfalls

Error: No outdated packages found.

Solution: Double-check that you have packages installed globally.

Error: Command failed: Cannot find module 'pnpm'

Solution: Ensure PNPM is installed globally using `npm install -g pnpm`.

Error: Unsupported option: --global

Solution: Use the correct option format, e.g., `-g`.

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.
-g
g| global
The value supplied for g| global.
-g
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.