mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
fix: #3695 change version check method in order to make it work with alpha/beta versions
This commit is contained in:
parent
ef965de1f4
commit
052d6c55df
@ -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`');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user