[go: up one dir, main page]

Passa al contenuto principale
Versione: 11.x

pnpm view

Added in: v11.0.0

Aliases: info, show

View package metadata from the registry.

pnpm view <pkg>
pnpm view <pkg> [field]
pnpm view [field]

Utilizzo

Show all metadata for a package:

pnpm view express

Show a specific field:

pnpm view express version
pnpm view express dependencies
pnpm view express dist-tags

Show metadata for a specific version:

pnpm view express@4.18.0

When no package name is provided, pnpm view searches upward for the nearest project manifest (package.json, package.yaml, or package.json5) and uses its name field. If the manifest exists but has no name, the command fails.

Opzioni

--json

Output the metadata in JSON format.