diff --git a/packages/create-react-app/createReactApp.js b/packages/create-react-app/createReactApp.js index 9ea51a87f5c..50641ab7efa 100755 --- a/packages/create-react-app/createReactApp.js +++ b/packages/create-react-app/createReactApp.js @@ -254,11 +254,13 @@ function createApp( const yarnInfo = checkYarnVersion(); if (!yarnInfo.hasMinYarnPnp) { if (yarnInfo.yarnVersion) { - chalk.yellow( - `You are using Yarn ${ - yarnInfo.yarnVersion - } together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` + - `Please update to Yarn 1.12 or higher for a better, fully supported experience.\n` + console.log( + chalk.yellow( + `You are using Yarn ${ + yarnInfo.yarnVersion + } together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` + + `Please update to Yarn 1.12 or higher for a better, fully supported experience.\n` + ) ); } // 1.11 had an issue with webpack-dev-middleware, so better not use PnP with it (never reached stable, but still)