File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ var semver;
1717var issues = [ ] ;
1818
1919// coarse Node version check
20- if ( process . version [ 1 ] !== '4' ) {
21- issues . push ( "Angular 2 build currently requires Node 4 . Use nvm to update your node version." ) ;
20+ if ( Number . parseInt ( process . version [ 1 ] , 10 ) < 5 ) {
21+ issues . push ( "Angular 2 build currently requires Node 5 . Use nvm to update your node version." ) ;
2222}
2323
2424try {
2727 issues . push ( "Looks like you are missing some npm dependencies. Run: npm install" ) ;
2828}
2929
30+ if ( issues . length ) {
31+ printWarning ( issues ) ;
32+ console . error ( "Your environment doesn't provide the prerequisite dependencies.\n" +
33+ "Please fix the issues listed above and then rerun the gulp command.\n" +
34+ "Check out https://github.com/angular/angular/blob/master/DEVELOPER.md for more info." ) ;
35+ process . exit ( 1 ) ;
36+ }
37+
3038// wrap in try/catch in case someone requires from within that file
3139try {
3240 checkNodeModules = require ( './npm/check-node-modules.js' ) ;
You can’t perform that action at this time.
0 commit comments