mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-03 02:20:59 -05:00
fix: pnpm v7 install error (#7265)
This commit is contained in:
@@ -167,7 +167,8 @@ module.exports = class Creator extends EventEmitter {
|
||||
// generate a .npmrc file for pnpm, to persist the `shamefully-flatten` flag
|
||||
if (packageManager === 'pnpm') {
|
||||
const pnpmConfig = hasPnpmVersionOrLater('4.0.0')
|
||||
? 'shamefully-hoist=true\n'
|
||||
// pnpm v7 makes breaking change to set strict-peer-dependencies=true by default, which may cause some problems when installing
|
||||
? 'shamefully-hoist=true\nstrict-peer-dependencies=false\n'
|
||||
: 'shamefully-flatten=true\n'
|
||||
|
||||
await writeFileTree(context, {
|
||||
|
||||
Reference in New Issue
Block a user