I am updating my Angular project to 11.0.5
by running the command below:
ng update @angular/[email protected]
An error message that comes is as follows:
Package "codelyzer" has an incompatible peer dependency to "@angular/common" (requires ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0" (extended), would install "11.0.5")
Questions:
- If Angular were to be updated to
11.0.5
, does this mean the existing codelyzer will not run as it is only compatible with Angular within this version bracket: >=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0? - How do I interpret "would install 11.0.5"? Does it mean by running the command
ng update @angular/[email protected]
, this will update Angular to 11.0.5, of which the consequences are it will be incompatible with the existing version of codelyzer? - In most SO cases, people have suggested running the update with the
--force
flag. Is the correct way to update codelyzer first? Then only update Angular to11.0.5
?
Thanks.