mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
hotfix: #3901 fix error when installing module
This commit is contained in:
parent
119ee1f07a
commit
7b43fea55d
@ -63,7 +63,7 @@ Modularizer.install = function (CLI, moduleName, opts, cb) {
|
||||
Common.printError(cst.PREFIX_MSG_ERR + 'File ' + file + ' not found');
|
||||
return cb(Common.retErr(e));
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
var config = Common.parseConfig(data, file);
|
||||
} catch (e) {
|
||||
@ -82,7 +82,7 @@ Modularizer.install = function (CLI, moduleName, opts, cb) {
|
||||
var currentModule = INTERNAL_MODULES[moduleName];
|
||||
|
||||
if (currentModule && currentModule.hasOwnProperty('dependencies')) {
|
||||
Modularizer.installMultipleInternalModules(currentModule.dependencies, cb);
|
||||
Modularizer.installMultipleModules(currentModule.dependencies, cb);
|
||||
} else {
|
||||
installModuleByName(currentModule, cb);
|
||||
}
|
||||
@ -130,7 +130,7 @@ Modularizer.installMultipleModules = function (modules, cb, post_install) {
|
||||
});
|
||||
Common.printOut(cst.PREFIX_MSG_MOD + 'Running configuraton script.');
|
||||
}
|
||||
catch(e)
|
||||
catch(e)
|
||||
{
|
||||
Common.printOut(cst.PREFIX_MSG_MOD + 'No configuraton script found.');
|
||||
}
|
||||
@ -633,7 +633,7 @@ function installLangModule(module_name, cb) {
|
||||
return cb(new Error('Module install failed'));
|
||||
return cb(null);
|
||||
});
|
||||
|
||||
|
||||
install_instance.on('error', function (err) {
|
||||
console.error(err.stack || err);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user