From 42c71c17765c9ea59f2671d3f7274d628b83c2f6 Mon Sep 17 00:00:00 2001 From: Ryan Stelly Date: Sat, 20 May 2017 19:44:12 -0500 Subject: [PATCH] 14081 mute yarn check error on Windows --- react-native-cli/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native-cli/index.js b/react-native-cli/index.js index e2ae7586b8f0c0..e35831547c577f 100755 --- a/react-native-cli/index.js +++ b/react-native-cli/index.js @@ -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(); }