Skip to content

Commit

Permalink
Warn when not using the latest version of create-react-app but do not…
Browse files Browse the repository at this point in the history
… exit (#11915)
  • Loading branch information
iansu authored Mar 23, 2022
1 parent fd8c5f7 commit 52d6431
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 52d6431

Please sign in to comment.