Skip to main content
Version: 11.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>

了解更多关于筛选的信息。

--global, -g

列出过时的全局包。

🌐 List outdated global packages.

--long

打印详细信息。

🌐 Print details.

--format <format>

  • 默认:表格
  • 类型:表格列表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.

--sort-by

指定输出结果的排序顺序。目前仅接受值 name

🌐 Specifies the order in which the output results are sorted. Currently only the value name is accepted.