Skip to content

Commit

Permalink
Stop spinner when there's an error installing the npm dependencies. F…
Browse files Browse the repository at this point in the history
…ixes mozilla#160
  • Loading branch information
Marco Castelluccio committed Nov 11, 2015
1 parent 0e4e740 commit e497315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ module.exports = function(config) {
cli.spinner(' Installing npm dependencies…');
})
.pipe(install({
log: function() {
cli.spinner(chalk.red('× ') + 'Installing npm dependencies… error!\n', true);
console.log(Array.prototype.slice.call(arguments).join(''));
},
npmStdio: ['ignore', 'ignore', 'ignore'],
}))
.on('end', function() {
Expand Down

0 comments on commit e497315

Please sign in to comment.