Skip to content

Commit

Permalink
fix: #3695 change version check method in order to make it work with …
Browse files Browse the repository at this point in the history
…alpha/beta versions
  • Loading branch information
wallet77 committed Jun 7, 2018
1 parent ef965de commit 052d6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/Extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`');
Expand Down

0 comments on commit 052d6c5

Please sign in to comment.