Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14081 mute yarn check error on Windows
  • Loading branch information
FLGMwt committed May 21, 2017
commit 42c71c17765c9ea59f2671d3f7274d628b83c2f6
2 changes: 1 addition & 1 deletion react-native-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function getYarnVersionIfAvailable() {
try {
// execSync returns a Buffer -> convert to string
if (process.platform.startsWith('win')) {
yarnVersion = (execSync('yarn --version').toString() || '').trim();
yarnVersion = (execSync('yarn --version 2> NUL').toString() || '').trim();
} else {
yarnVersion = (execSync('yarn --version 2>/dev/null').toString() || '').trim();
}
Expand Down