Skip to main content
Version: 9.x

pnpm outdated

检查是否有过时的软件包。通过提供参数(支持模式),可以将检查限制为已安装软件包的子集。

¥Checks for outdated packages. The check can be limited to a subset of the installed packages by providing arguments (patterns are supported).

示例:

¥Examples:

pnpm outdated
pnpm outdated "*gulp-*" @babel/core

选项

¥Options

--recursive, -r

检查子目录中找到的每个包中或在工作区中执行时的每个工作区包中是否有过时的依赖。

¥Check for outdated dependencies in every package found in subdirectories, or in every workspace package when executed inside a workspace.

--filter <package_selector>

了解有关过滤的更多信息。

¥Read more about filtering.

--global, -g

列出过时的全局包。

¥List outdated global packages.

--long

打印详细信息。

¥Print details.

--format <format>

  • 默认:table

    ¥Default: table

  • 类型:table, list, json

    ¥Type: table, list, json

以给定格式打印过时的依赖。

¥Prints the outdated dependencies in the given format.

--compatible

仅打印满足 package.json 中规范的版本。

¥Prints only versions that satisfy specifications in package.json.

--dev, -D

仅检查 devDependencies

¥Checks only devDependencies.

--prod, -P

仅检查 dependenciesoptionalDependencies

¥Checks only dependencies and optionalDependencies.

--no-optional

不检查 optionalDependencies

¥Doesn't check optionalDependencies.