Added error-handling for npm
This commit is contained in:
parent
7ec7ccc402
commit
e7d9359737
1 changed files with 9 additions and 1 deletions
|
@ -22,7 +22,15 @@ async.series([
|
|||
// load npm
|
||||
function(callback) {
|
||||
npm.load({}, function(er) {
|
||||
callback(er)
|
||||
if(er)
|
||||
{
|
||||
console.error("Could not load NPM: " + er)
|
||||
process.exit(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
callback();
|
||||
}
|
||||
})
|
||||
},
|
||||
// load modules
|
||||
|
|
Loading…
Reference in a new issue