From 52d643170b8871b40eb72dbb9f781924dc2cb19c Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Wed, 23 Mar 2022 14:09:37 -0600 Subject: [PATCH] Warn when not using the latest version of create-react-app but do not exit (#11915) --- packages/create-react-app/createReactApp.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/create-react-app/createReactApp.js b/packages/create-react-app/createReactApp.js index 6a2bb06b76e..b3c7ca7c1d6 100755 --- a/packages/create-react-app/createReactApp.js +++ b/packages/create-react-app/createReactApp.js @@ -209,22 +209,15 @@ function init() { console.error( chalk.yellow( `You are running \`create-react-app\` ${packageJson.version}, which is behind the latest release (${latest}).\n\n` + - 'We no longer support global installation of Create React App.' + 'We recommend always using the latest version of create-react-app if possible.' ) ); console.log(); - console.log( - 'Please remove any global installs with one of the following commands:\n' + - '- npm uninstall -g create-react-app\n' + - '- yarn global remove create-react-app' - ); - console.log(); console.log( 'The latest instructions for creating a new app can be found here:\n' + 'https://create-react-app.dev/docs/getting-started/' ); console.log(); - process.exit(1); } else { const useYarn = isUsingYarn(); createApp(