Skip to content

Commit 695ca75

Browse files
tobiasbuescheliansu
authored andcommitted
Fix minimum version error on old versions of Node.js (#6941)
1 parent 8e32ce5 commit 695ca75

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

packages/create-react-app/index.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,17 @@
3636

3737
'use strict';
3838

39-
var chalk = require('chalk');
40-
4139
var currentNodeVersion = process.versions.node;
4240
var semver = currentNodeVersion.split('.');
4341
var major = semver[0];
4442

4543
if (major < 8) {
4644
console.error(
47-
chalk.red(
48-
'You are running Node ' +
49-
currentNodeVersion +
50-
'.\n' +
51-
'Create React App requires Node 8 or higher. \n' +
52-
'Please update your version of Node.'
53-
)
45+
'You are running Node ' +
46+
currentNodeVersion +
47+
'.\n' +
48+
'Create React App requires Node 8 or higher. \n' +
49+
'Please update your version of Node.'
5450
);
5551
process.exit(1);
5652
}

0 commit comments

Comments
 (0)