Skip to content

Commit db374ec

Browse files
authored
fix: should not show error message when pnpm is not installed (#3826)
1 parent 0bfc4b6 commit db374ec

File tree

1 file changed

+3
-1
lines changed
  • packages/@vue/cli-shared-utils/lib

1 file changed

+3
-1
lines changed

packages/@vue/cli-shared-utils/lib/env.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ exports.hasPnpm3OrLater = () => {
9393
return _hasPnpm3orLater
9494
}
9595
try {
96-
const pnpmVersion = execSync('pnpm --version').toString()
96+
const pnpmVersion = execSync('pnpm --version', {
97+
stdio: ['pipe', 'pipe', 'ignore']
98+
}).toString()
9799
// there's a critical bug in pnpm 2
98100
// https://github.com/pnpm/pnpm/issues/1678#issuecomment-469981972
99101
// so we only support pnpm >= 3.0.0

0 commit comments

Comments
 (0)