pnpm cache delete

警告

此為實驗性命令!

Deletes metadata cache for the specified packages. Supports patterns.

pnpm cache delete [<pattern>...]

Each pattern is a glob segment matched against <registry>/<pattern>.jsonl, and only the cache of the configured registry is affected. The cached manifests of single versions that pnpm read from a pnpr registry are deleted with their package. Use --registry to pick another one. The deleted files are printed one per line.

pnpm cache delete '@babel/*'

警告

Without arguments, pnpm cache delete deletes every cached metadata file of the configured registry. The descriptor-scoped metadata under v12/metadata-private is not affected.