From e1f04bf2e328de9d232ef0fe600709b151da09ec Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 4 Feb 2016 15:22:12 -0800 Subject: [PATCH] Quit early if node < 4 Summary: Before we would display this warning at the top and have the packager throw thousands of lines of errors because of es6 syntax. Before: screen shot 2016-02-04 at 1 49 27 pm After: screen shot 2016-02-04 at 2 04 50 pm Closes https://github.com/facebook/react-native/pull/5767 Reviewed By: svcscm Differential Revision: D2902978 Pulled By: androidtrunkagent fb-gh-sync-id: c0193c3b1e36778d61aa9013f0c294f8c3475442 --- local-cli/server/checkNodeVersion.js | 1 + 1 file changed, 1 insertion(+) diff --git a/local-cli/server/checkNodeVersion.js b/local-cli/server/checkNodeVersion.js index 5d73f9e463d990..406c08cf825770 100644 --- a/local-cli/server/checkNodeVersion.js +++ b/local-cli/server/checkNodeVersion.js @@ -36,5 +36,6 @@ module.exports = function() { marginRight: 1, paddingBottom: 1, })); + process.exit(1); } };