pnpm licenses
命令
list
别名:ls
列出已安装包的许可证。
Since v11.20.0, a package resolved from a named registry is reported separately from a package of the same name and version that came from another registry. The registry alias is shown next to the package name in the table output and is exposed as the registryName field with --json.
配置项
--dev, -D
仅检查 "devDependencies"。
--json
以 JSON 格式显示信息。
--long
显示更多细节(例如仓库链接)。 要显示细节,请传递此选项。
--no-optional
不检查 optionalDependencies 中的软件包。
--prod, -P
仅检查 dependencies 和 optionalDependencies。