fix: #3695 change version check method in order to make it work with alpha/beta versions

This commit is contained in:
vince 2018-06-07 15:59:46 +02:00
parent ef965de1f4
commit 052d6c55df

View File

@ -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`');