Skip to main content
Version: Next

pnpm bugs

新增于:v11.1.0

🌐 Added in: v11.1.0

在浏览器中打开软件包的错误跟踪器网址。

🌐 Opens a package's bug tracker URL in the browser.

pnpm bugs [<pkg> ...]

别名

🌐 Aliases

pnpm issues(在 v11.10.0 中添加)是 pnpm bugs 的别名。

当在包目录中不带参数运行时,它会打开当前项目的缺陷跟踪器(使用 package.json 中的 bugs 字段)。

🌐 When run without arguments inside a package directory, it opens the bug tracker for the current project (using the bugs field from package.json).

当传入一个或多个软件包名称时,pnpm 会从注册表获取每个软件包的元数据并打开其缺陷跟踪器。

🌐 When one or more package names are passed, pnpm fetches each package's metadata from the registry and opens its bug tracker.

如果一个包没有声明 bugs 字段,pnpm 会回退到从 repository 字段派生的 <repository>/issues

🌐 If a package does not declare a bugs field, pnpm falls back to <repository>/issues derived from the repository field.

示例

🌐 Examples

为已发布的软件包打开错误跟踪器:

🌐 Open the bug tracker for a published package:

pnpm bugs lodash

一次打开多个软件包的错误跟踪器:

🌐 Open the bug tracker for multiple packages at once:

pnpm bugs react react-dom

打开当前项目的缺陷跟踪器:

🌐 Open the bug tracker for the current project:

pnpm bugs