pnpm licenses

Aliases: licences

Checks the licenses of the installed packages.

pnpm licenses list

pnpm licenses without a subcommand fails with ERR_PNPM_LICENCES_NO_SUBCOMMAND.

Команди#

list#

Псевдоніми: ls

Список ліцензій для встановлених пакунків.

The command requires a pnpm-lock.yaml file. A workspace project not yet recorded in the lockfile has no licenses to list. When no licenses match, text output says No licenses in packages found and --json outputs {}.

Since v12.7.0, running pnpm licenses list inside a workspace project lists only that project's dependencies. Use --recursive or --filter to include other workspace projects.

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.

Параметри#

--recursive, -r#

List the licenses of the dependencies of every workspace project.

--dev, -D#

Перевіряти лише `devDependencies".

--json#

Показати інформацію у форматі JSON.

--long#

Show the author, description, and homepage of each package.

--no-optional#

Не перевіряти пакунки з optionalDependencies.

--optional, -O#

Check only optionalDependencies.

--prod, -P, --production#

Перевіряє лише dependencies та optionalDependencies.

--filter <package_selector>#

Читайте більше про фільтрування.