From 052d6c55df0e941e1dd11430bbcbcaa34061a06e Mon Sep 17 00:00:00 2001 From: vince Date: Thu, 7 Jun 2018 15:59:46 +0200 Subject: [PATCH] fix: #3695 change version check method in order to make it work with alpha/beta versions --- lib/API/Extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/API/Extra.js b/lib/API/Extra.js index cf7a23fc..bca1da25 100644 --- a/lib/API/Extra.js +++ b/lib/API/Extra.js @@ -108,7 +108,7 @@ module.exports = function(CLI) { } that.Client.executeRemote('getVersion', {}, function(err, data) { - if (semver.satisfies(data, '>= 2.6.0')) + if (semver.satisfies(semver.coerce(data), '>=2.6.0')) reporting(); else { Common.printError(cst.PREFIX_MSG_ERR + 'You need to update your Daemon, please type `$ pm2 update`');