Skip to content

Commit f3531f5

Browse files
committed
fix: pnpm v7 install error
1 parent e636817 commit f3531f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vue/cli/lib/Creator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ module.exports = class Creator extends EventEmitter {
167167
// generate a .npmrc file for pnpm, to persist the `shamefully-flatten` flag
168168
if (packageManager === 'pnpm') {
169169
const pnpmConfig = hasPnpmVersionOrLater('4.0.0')
170-
? 'shamefully-hoist=true\n'
170+
// pnpm v7 makes breaking change to set strict-peer-dependencies=true by default, which may cause some problems when installing
171+
? 'shamefully-hoist=true\nstrict-peer-dependencies=false\n'
171172
: 'shamefully-flatten=true\n'
172173

173174
await writeFileTree(context, {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy