title: After Angular update npm install fails because of peer dependency conflicts
body: <p>I'm having trouble updating my Angular version. When I use <code>ng update</code> I get the following output:</p>
  <pre><code>Name                                       Version                  Command to update
       ----------------------------------------------------------------------------------------
        @angular/cdk                               12.1.2 -&gt; 12.2.0         ng update @angular/cdk
        @angular/cli                               12.1.2 -&gt; 12.2.0         ng update @angular/cli
        @angular/core                              12.1.2 -&gt; 12.2.0         ng update @angular/core
        @angular/material                          12.1.2 -&gt; 12.2.0         ng update @angular/material
  </code></pre>
  <p>Afterwards I try to update all four of them using the command:</p>
  <pre><code>ng update @angular/cdk @angular/cli @angular/core @angular/material -C
  </code></pre>
  <p>The <code>package.json</code> is updated and afterwards <code>npm i</code> is run in order to install all packages. Here I encounter the following error:</p>
  <pre><code>npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! Found: @angular-devkit/build-angular@12.1.2
  npm ERR! node_modules/@angular-devkit/build-angular
  npm ERR!   dev @angular-devkit/build-angular@&quot;^12.2.0&quot; from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! dev @angular-devkit/build-angular@&quot;^12.2.0&quot; from the root project
  npm ERR! 
  npm ERR! Conflicting peer dependency: @angular/localize@12.2.0
  npm ERR! node_modules/@angular/localize
  npm ERR!   peerOptional @angular/localize@&quot;^12.0.0 || ^12.2.0-next&quot; from @angular-devkit/build-angular@12.2.0
  npm ERR!   node_modules/@angular-devkit/build-angular
  npm ERR!     dev @angular-devkit/build-angular@&quot;^12.2.0&quot; from the root project
  npm ERR! 
  npm ERR! Fix the upstream dependency conflict, or retry
  npm ERR! this command with --force, or --legacy-peer-deps
  npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
  </code></pre>
  <p>I do not know why it says <code>Found: @angular-devkit/build-angular@12.1.2</code> when in the <code>package.json</code> all @angular related files have <code>~12.2.0</code> declared as version.</p>