pnpm licenses

Aliases: licences

Checks the licenses of project dependencies.

pnpm licenses list

pnpm licenses without a subcommand fails with ERR_PNPM_LICENCES_NO_SUBCOMMAND.

Commands#

list#

별칭: ls

List licenses for project dependencies.

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 {}.

When node_modules is absent, pnpm reads package metadata and license files from the configured store. Run pnpm fetch to populate the store from the lockfile. Packages missing from both the installation and the store are reported with an Unknown license.

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. 레지스트리 별칭은 테이블 출력에서 패키지 이름 옆에 표시되며, --json 사용 시 registryName 필드로 제공됩니다.

옵션#

--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>#

필터링에 대해 자세히 알아보세요.