exit w/ error code if npm install fails

This commit is contained in:
Michael Bradley, Jr 2018-09-27 14:56:02 -05:00 committed by Pascal Precht
parent 97f22a3543
commit 585e286adb
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D

View File

@ -89,6 +89,7 @@ class TemplateGenerator {
utils.runCmd('npm install', null, (err) => {
if (err) {
console.error(utils.errorMessage(err).red);
process.exit(1);
}
console.log(__('Init complete').green);
console.log('\n' + __('App ready at ').green + templatePath);