Skip to content

Commit 052d6c5

Browse files
committed
fix: #3695 change version check method in order to make it work with alpha/beta versions
1 parent ef965de commit 052d6c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/API/Extra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ module.exports = function(CLI) {
108108
}
109109

110110
that.Client.executeRemote('getVersion', {}, function(err, data) {
111-
if (semver.satisfies(data, '>= 2.6.0'))
111+
if (semver.satisfies(semver.coerce(data), '>=2.6.0'))
112112
reporting();
113113
else {
114114
Common.printError(cst.PREFIX_MSG_ERR + 'You need to update your Daemon, please type `$ pm2 update`');

0 commit comments

Comments
 (0)