fix: should not show error message when pnpm is not installed (#3826)

This commit is contained in:
Haoqun Jiang
2019-04-25 22:47:10 +08:00
committed by GitHub
parent 0bfc4b684f
commit db374ecd83

View File

@@ -93,7 +93,9 @@ exports.hasPnpm3OrLater = () => {
return _hasPnpm3orLater
}
try {
const pnpmVersion = execSync('pnpm --version').toString()
const pnpmVersion = execSync('pnpm --version', {
stdio: ['pipe', 'pipe', 'ignore']
}).toString()
// there's a critical bug in pnpm 2
// https://github.com/pnpm/pnpm/issues/1678#issuecomment-469981972
// so we only support pnpm >= 3.0.0