Features
-
--shamefully-flatten
flag. When the installation is done with the--shamefully-flatten
flag, pnpm tries to flatten the dependency graph (like npm and Yarn). (pnpm/supi#42, @etamponi)Usage example:
pnpm i --shamefully-flatten
or create a
.npmrc
file in the root of your project with the following content:shamefully-flatten=true
You could also set this config globally, via
npm set shamefully-flatten true
. Though, we don't recommend doing so. You should only use this option when a project does not work with the strict (non-flat) node_modules. Even in that case it is a bug that should be fixed in the log run.