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 (facebook#11915)
  • Loading branch information
iansu authored and abhiisheek committed May 24, 2023
1 parent 8146209 commit dd1fe73
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/create-react-app/createReactApp.js
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 dd1fe73

Please sign in to comment.