Skip to content

Commit cc2651c

Browse files
mfueserhansl
authored andcommitted
fix(@angular/cli): Backwards warning that global CLI is greater version than local CLI #4341
1 parent 1dd5399 commit cc2651c

File tree

1 file changed

+1
-1
lines changed
  • packages/@angular/cli/bin

1 file changed

+1
-1
lines changed

packages/@angular/cli/bin/ng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ resolve('@angular/cli', { basedir: process.cwd() },
107107

108108
try {
109109
localVersion = _fromPackageJson();
110-
shouldWarn = localVersion && globalVersion.compare(localVersion) < 0;
110+
shouldWarn = localVersion && globalVersion.compare(localVersion) > 0;
111111
} catch (e) {
112112
console.error(e);
113113
shouldWarn = true;

0 commit comments

Comments
 (0)