Commit d3530f48 authored by Ville Immonen's avatar Ville Immonen Committed by Christopher Chedeau
Browse files

Warn about unsupported Node.js versions (#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 create-react-app@0.3.0: 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
parent 29107ca2
Showing with 3 additions and 0 deletions
+3 -0
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
"description": "Create React apps with no build configuration.", "description": "Create React apps with no build configuration.",
"repository": "facebookincubator/create-react-app", "repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"engines": {
"node": ">=4"
},
"bugs": { "bugs": {
"url": "https://github.com/facebookincubator/create-react-app/issues" "url": "https://github.com/facebookincubator/create-react-app/issues"
}, },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment