Skip to content

Commit

Permalink
fix(@angular/cli): Backwards warning that global CLI is greater versi…
Browse files Browse the repository at this point in the history
…on than local CLI #4341
  • Loading branch information
mfueser authored and hansl committed Feb 3, 2017
1 parent 1dd5399 commit cc2651c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@angular/cli/bin/ng
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ resolve('@angular/cli', { basedir: process.cwd() },

try {
localVersion = _fromPackageJson();
shouldWarn = localVersion && globalVersion.compare(localVersion) < 0;
shouldWarn = localVersion && globalVersion.compare(localVersion) > 0;
} catch (e) {
console.error(e);
shouldWarn = true;
Expand Down

0 comments on commit cc2651c

Please sign in to comment.