From d3530f48ade66f76b4dd0396d8fd9d8cb19ce900 Mon Sep 17 00:00:00 2001
From: Ville Immonen <ville.immonen@iki.fi>
Date: Tue, 6 Sep 2016 18:45:50 +0300
Subject: [PATCH] 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
---
 global-cli/package.json | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/global-cli/package.json b/global-cli/package.json
index 91f86bea1..cd4008fef 100644
--- a/global-cli/package.json
+++ b/global-cli/package.json
@@ -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"
   },
-- 
GitLab