Skip to content

Commit e1f04bf

Browse files
vjeuxfacebook-github-bot-5
authored andcommitted
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: <img width="602" alt="screen shot 2016-02-04 at 1 49 27 pm" src="https://cloud.githubusercontent.com/assets/197597/12831357/a72bdc0a-cb48-11e5-9b81-dde895eaf113.png"> After: <img width="1440" alt="screen shot 2016-02-04 at 2 04 50 pm" src="https://cloud.githubusercontent.com/assets/197597/12831364/af1c16a0-cb48-11e5-949c-c470938f8b49.png"> Closes react#5767 Reviewed By: svcscm Differential Revision: D2902978 Pulled By: androidtrunkagent fb-gh-sync-id: c0193c3b1e36778d61aa9013f0c294f8c3475442
1 parent aea67c8 commit e1f04bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

local-cli/server/checkNodeVersion.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ module.exports = function() {
3636
marginRight: 1,
3737
paddingBottom: 1,
3838
}));
39+
process.exit(1);
3940
}
4041
};

0 commit comments

Comments
 (0)