Skip to content

Commit 52d6431

Browse files
authored
Warn when not using the latest version of create-react-app but do not exit (#11915)
1 parent fd8c5f7 commit 52d6431

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/create-react-app/createReactApp.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -209,22 +209,15 @@ function init() {
209209
console.error(
210210
chalk.yellow(
211211
`You are running \`create-react-app\` ${packageJson.version}, which is behind the latest release (${latest}).\n\n` +
212-
'We no longer support global installation of Create React App.'
212+
'We recommend always using the latest version of create-react-app if possible.'
213213
)
214214
);
215215
console.log();
216-
console.log(
217-
'Please remove any global installs with one of the following commands:\n' +
218-
'- npm uninstall -g create-react-app\n' +
219-
'- yarn global remove create-react-app'
220-
);
221-
console.log();
222216
console.log(
223217
'The latest instructions for creating a new app can be found here:\n' +
224218
'https://create-react-app.dev/docs/getting-started/'
225219
);
226220
console.log();
227-
process.exit(1);
228221
} else {
229222
const useYarn = isUsingYarn();
230223
createApp(

0 commit comments

Comments
 (0)