Skip to content

Commit

Permalink
use semver.lt instead of semver.gt in install-npm
Browse files Browse the repository at this point in the history
  • Loading branch information
watilde committed Mar 30, 2017
1 parent 45a4f99 commit 226d79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/00-install-npm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports.verify = function (args, cb) {
}

console.log(__('install-npm.latest-version', {version: latest}))
if (semver.gt(latest, v)) {
if (semver.lt(latest, v)) {
console.log(__('install-npm.upgrade', {version: v, latest: latest}))
return cb(false)
}
Expand Down

0 comments on commit 226d79e

Please sign in to comment.