版本:11.x於本頁面pnpm prefixAdded 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.