Skip to main content
Version: 11 & 12

pnpm prefix

Added in: v11.10.0

Prints the current package prefix directory — the directory containing the closest package.json.

pnpm prefix

Options

--global, -g

Prints the global prefix directory instead.