Skip to content

Commit

Permalink
Warn about unsupported Node.js versions (facebook#575)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
fson authored and feiqitian committed Oct 25, 2016
1 parent a695168 commit 35d0d44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions global-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": "Create React apps with no build configuration.",
"repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause",
"engines": {
"node": ">=4"
},
"bugs": {
"url": "https://github.com/facebookincubator/create-react-app/issues"
},
Expand Down

0 comments on commit 35d0d44

Please sign in to comment.