Skip to content

Commit 34326df

Browse files
author
Morten N.O. Henriksen
committed
Update missing node checks and references to +14
Credit @iansu facebook#11253
1 parent a23e653 commit 34326df

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Create a project, and you’re good to go.
3939

4040
## Creating an App
4141

42-
**You’ll need to have Node 10.16.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
42+
**You’ll need to have Node 14.0.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
4343

4444
To create a new app, you may choose one of the following methods:
4545

docusaurus/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Create a project, and you’re good to go.
3434

3535
## Creating an App
3636

37-
**You’ll need to have Node >= 10 on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
37+
**You’ll need to have Node >= 14 on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
3838

3939
To create a new app, you may choose one of the following methods:
4040

packages/cra-template-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"license": "MIT",
1717
"engines": {
18-
"node": ">=10"
18+
"node": ">=14"
1919
},
2020
"bugs": {
2121
"url": "https://github.com/facebook/create-react-app/issues"

packages/cra-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"license": "MIT",
1616
"engines": {
17-
"node": ">=10"
17+
"node": ">=14"
1818
},
1919
"bugs": {
2020
"url": "https://github.com/facebook/create-react-app/issues"

packages/create-react-app/createReactApp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ function createApp(name, verbose, version, template, useNpm, usePnp) {
239239
const unsupportedNodeVersion = !semver.satisfies(
240240
// Coerce strings with metadata (i.e. `15.0.0-nightly`).
241241
semver.coerce(process.version),
242-
'>=10'
242+
'>=14'
243243
);
244244

245245
if (unsupportedNodeVersion) {
246246
console.log(
247247
chalk.yellow(
248248
`You are using Node ${process.version} so the project will be bootstrapped with an old unsupported version of tools.\n\n` +
249-
`Please update to Node 10 or higher for a better, fully supported experience.\n`
249+
`Please update to Node 14 or higher for a better, fully supported experience.\n`
250250
)
251251
);
252252
// Fall back to latest supported react-scripts on Node 4
@@ -527,7 +527,7 @@ function run(
527527
console.log(
528528
chalk.yellow(
529529
`\nNote: the project was bootstrapped with an old unsupported version of tools.\n` +
530-
`Please update to Node >=10 and npm >=6 to get supported tools in new projects.\n`
530+
`Please update to Node >=14 and npm >=6 to get supported tools in new projects.\n`
531531
)
532532
);
533533
}

packages/create-react-app/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ var currentNodeVersion = process.versions.node;
4040
var semver = currentNodeVersion.split('.');
4141
var major = semver[0];
4242

43-
if (major < 10) {
43+
if (major < 14) {
4444
console.error(
4545
'You are running Node ' +
4646
currentNodeVersion +
4747
'.\n' +
48-
'Create React App requires Node 10 or higher. \n' +
48+
'Create React App requires Node 14 or higher. \n' +
4949
'Please update your version of Node.'
5050
);
5151
process.exit(1);

packages/create-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"license": "MIT",
1414
"engines": {
15-
"node": ">=10"
15+
"node": ">=14"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/facebook/create-react-app/issues"

packages/react-app-polyfill/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"url": "https://github.com/facebook/create-react-app/issues"
1313
},
1414
"engines": {
15-
"node": ">=10"
15+
"node": ">=14"
1616
},
1717
"files": [
1818
"ie9.js",

packages/react-dev-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"url": "https://github.com/facebook/create-react-app/issues"
1313
},
1414
"engines": {
15-
"node": ">=10"
15+
"node": ">=14"
1616
},
1717
"files": [
1818
"browsersHelper.js",

0 commit comments

Comments
 (0)