Skip to content

Commit 6740ca3

Browse files
committed
fix: should add --shamefully-flatten for pnpm install
1 parent 94f3ca0 commit 6740ca3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@vue/cli/lib/util/installDeps.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ exports.installDeps = async function installDeps (targetDir, command, cliRegistr
182182
// do nothing
183183
}
184184

185+
if (command === 'pnpm') {
186+
args.push('--shamefully-flatten')
187+
}
188+
185189
await addRegistryToArgs(command, args, cliRegistry)
186190

187191
debug(`command: `, command)

0 commit comments

Comments
 (0)