mirror of https://github.com/embarklabs/embark.git
fix: template dependency errors don't exit
This commit is contained in:
parent
fc823bb7eb
commit
271a219c8b
|
@ -119,10 +119,9 @@ class TemplateGenerator {
|
||||||
|
|
||||||
if (installPackages) {
|
if (installPackages) {
|
||||||
console.log(__('Installing packages...').green);
|
console.log(__('Installing packages...').green);
|
||||||
utils.runCmd('npm install', null, (err) => {
|
utils.runCmd('npm install', {exitOnError: false}, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(utils.errorMessage(err).red);
|
console.error(__('Could not install dependencies. Try running `npm install` inside the project directory.').red);
|
||||||
process.exit(1);
|
|
||||||
}
|
}
|
||||||
console.log(__('Init complete').green);
|
console.log(__('Init complete').green);
|
||||||
console.log('\n' + __('App ready at ').green + templatePath);
|
console.log('\n' + __('App ready at ').green + templatePath);
|
||||||
|
|
Loading…
Reference in New Issue