outdated Verified current stable Not installed? Package Management

Outdated / Print Details Outdated Packages

Print Details Outdated Packages

Shows comprehensive details about outdated packages in a PNPM project.

$
Terminal
pnpm outdated --long

When To Use

During a pre-deployment checklist to assess the state of dependencies.

Pro Tip

Leverage the `--depth` option to control how many levels of dependencies you wish to inspect for outdated packages.

Anatomy of Output

Understanding the result

Package Current Wanted Latest Location Header Row

Identifies the columns of outdated package details.

axios 0.21.1 0.21.2 0.22.0 /your/project/node_modules Example Outdated Package Detail

Displays the package's current, wanted, and latest versions along with its installation path.

Troubleshooting

Common pitfalls

Error: No outdated packages found.

Solution: Ensure the project has packages installed.

Error: Unable to read package.json file.

Solution: Confirm the existence and permissions of package.json.

Error: Command failed due to npm cache issues.

Solution: Try running `npm cache clean --force` before attempting again.

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.
--long
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.