pnpm install --shamefully-hoist

Category: Node.js & npm/yarn

pnpm install --shamefully-hoist

Install with a flat node_modules layout

Hoists all transitive dependencies into the top-level node_modules, mimicking npm's classic layout where every package can reach everything. The name warns that this defeats pnpm's isolation model, which normally prevents phantom dependencies. Only reach for it when a legacy tool demands flat resolution.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.