Skip to content

Commit d3530f4

Browse files
fsonvjeux
authored andcommitted
Warn about unsupported Node.js versions (facebook#575)
* Warn about unsupported Node.js versions Add the `engines` field to package.json so users of old Node.js versions will at least get a warning when trying to install create-react-app or react-scripts, e.g.: npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.2.3","npm":"2.14.7"}) * Remove duplicated field and extra whitespace * Change the engine version back to 4
1 parent 29107ca commit d3530f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

global-cli/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"description": "Create React apps with no build configuration.",
88
"repository": "facebookincubator/create-react-app",
99
"license": "BSD-3-Clause",
10+
"engines": {
11+
"node": ">=4"
12+
},
1013
"bugs": {
1114
"url": "https://github.com/facebookincubator/create-react-app/issues"
1215
},

0 commit comments

Comments
 (0)