Linux command
pnpm-outdated 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Check outdated packages
pnpm outdated
Check specific package
pnpm outdated [package-name]
Check in production only
pnpm outdated --prod
Check dev dependencies
pnpm outdated --dev
Check globally installed
pnpm outdated -g
Long format output
pnpm outdated --long
说明
pnpm outdated checks for packages that have newer versions available by comparing installed versions against the registry. It displays a table showing the current, wanted (matching semver range), and latest versions for each outdated package. The output uses color coding to distinguish major (red) from minor (yellow) version bumps. Use --prod or --dev to filter by dependency type, -g for global packages, and -r to check all workspace packages in a monorepo. The --long flag shows additional details including the package homepage.
参数
- --prod
- Production dependencies only.
- --dev
- Development dependencies only.
- -g, --global
- Global packages.
- --long
- Show extended info.
- -r, --recursive
- Check all workspace packages.
- --filter _PATTERN_
- Filter packages in workspace.
- --no-table
- Print outdated dependencies as a list.
- --compatible
- Show only versions that satisfy semver ranges in package.json.
FAQ
What is the pnpm-outdated command used for?
pnpm outdated checks for packages that have newer versions available by comparing installed versions against the registry. It displays a table showing the current, wanted (matching semver range), and latest versions for each outdated package. The output uses color coding to distinguish major (red) from minor (yellow) version bumps. Use --prod or --dev to filter by dependency type, -g for global packages, and -r to check all workspace packages in a monorepo. The --long flag shows additional details including the package homepage.
How do I run a basic pnpm-outdated example?
Run `pnpm outdated` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --prod do in pnpm-outdated?
Production dependencies only.