diff --git a/.travis.yml b/.travis.yml index e146570d..b3ce156c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: node_js node_js: - "16" - - "15" - "14" - "12" + - "10" git: depth: 2 os: diff --git a/lib/API/Extra.js b/lib/API/Extra.js index f419b9a5..a2d2b3e2 100644 --- a/lib/API/Extra.js +++ b/lib/API/Extra.js @@ -35,9 +35,11 @@ module.exports = function(CLI) { * Install pm2-sysmonit */ CLI.prototype.launchSysMonitoring = function(cb) { - // if pm2 set pm2:sysmonit to false, skip pm2-sysmonit autostart - if (this.pm2_configuration == 'false' || process.env.NODE_ENV == 'test' - || process.env.TRAVIS || global.it === 'function' || cst.IS_WINDOWS === true) + + if ((this.pm2_configuration && this.pm2_configuration.sysmonit != 'true') || + process.env.TRAVIS || + global.it === 'function' || + cst.IS_WINDOWS === true) return cb ? cb(null) : null var filepath diff --git a/package.json b/package.json index 3ef037e0..b9379d7e 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "preferGlobal": true, "version": "5.0.4", "engines": { - "node": ">=12.0.0" + "node": ">=10.0.0" }, "directories": { "bin": "./bin",