Added error-handling for npm
parent
7ec7ccc402
commit
e7d9359737
|
@ -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 New Issue