Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea4c98a

Browse files
authored
fix: pnpm v7 install error (#7265)
1 parent e636817 commit ea4c98a

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)

AltStyle によって変換されたページ (->オリジナル) /