title: Angular app error when running npm install - Could not resolve dependency
body: <p>I have an Angular 9 (* UPDATE, this is meant to be Angular 11) , that has bee developed on Ubuntu and Mac machines. The following command works no problem:</p>
  <pre><code>npm install
  </code></pre>
  <p>So now I need to deploy it to a Linux Centos 7 server. So I have Dockerized it. When the Dockerfile wants to execute <code>npm install</code>, it gets the following error:</p>
  <pre><code>Step 4/13 : RUN npm install
   ---&gt; Running in 42f10bf7732c
  npm notice 
  npm notice New patch version of npm available! 7.4.0 -&gt; 7.4.3
  npm notice Changelog: &lt;https://github.com/npm/cli/releases/tag/v7.4.3&gt;
  npm notice Run `npm install -g npm@7.4.3` to update!
  npm notice 
  npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! While resolving: nexct-ng-ui@0.0.0
  npm ERR! Found: @angular/common@11.0.9
  npm ERR! node_modules/@angular/common
  npm ERR!   @angular/common@&quot;~11.0.0&quot; from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! peer @angular/common@&quot;^10.2.2&quot; from angular-datatables@10.1.0
  npm ERR! node_modules/angular-datatables
  npm ERR!   angular-datatables@&quot;^10.0.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.
  npm ERR! 
  npm ERR! See /root/.npm/eresolve-report.txt for a full report.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /root/.npm/_logs/2021-01-27T12_02_45_235Z-debug.log
  </code></pre>
  <p>Ay ideas?</p>
  <p>Additional info:</p>
  <p>I tried looking at the suggested logs:</p>
  <pre><code>/root/.npm/eresolve-report.txt: No such file or directory
  /root/.npm/_logs/2021-01-27T12_02_45_235Z-debug.log: No such file or directory
  </code></pre>
  <p><strong>package.json</strong></p>
  <pre><code>{
    &quot;name&quot;: &quot;nexct-ng-ui&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;~11.0.0&quot;,
      &quot;@angular/common&quot;: &quot;~11.0.0&quot;,
      &quot;@angular/compiler&quot;: &quot;~11.0.0&quot;,
      &quot;@angular/core&quot;: &quot;~11.0.0&quot;,
      &quot;@angular/forms&quot;: &quot;~11.0.0&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~11.0.0&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~11.0.0&quot;,
      &quot;@angular/router&quot;: &quot;~11.0.0&quot;,
      &quot;@fortawesome/fontawesome-free&quot;: &quot;^5.15.1&quot;,
      &quot;angular-datatables&quot;: &quot;^10.0.0&quot;,
      &quot;bootstrap&quot;: &quot;^4.5.3&quot;,
      &quot;datatables.net&quot;: &quot;^1.10.22&quot;,
      &quot;datatables.net-dt&quot;: &quot;^1.10.22&quot;,
      &quot;jquery&quot;: &quot;^3.5.1&quot;,
      &quot;ng-recaptcha&quot;: &quot;^6.0.2&quot;,
      &quot;popper.js&quot;: &quot;^1.16.1&quot;,
      &quot;rxjs&quot;: &quot;~6.6.0&quot;,
      &quot;tslib&quot;: &quot;^2.0.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~0.1100.1&quot;,
      &quot;@angular/cli&quot;: &quot;~11.0.1&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~11.0.0&quot;,
      &quot;@types/datatables.net&quot;: &quot;^1.10.19&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.6.0&quot;,
      &quot;@types/jquery&quot;: &quot;^3.5.4&quot;,
      &quot;@types/node&quot;: &quot;^12.11.1&quot;,
      &quot;codelyzer&quot;: &quot;^6.0.0&quot;,
      &quot;jasmine-core&quot;: &quot;~3.6.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~5.0.0&quot;,
      &quot;karma&quot;: &quot;~5.1.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;,
      &quot;karma-coverage&quot;: &quot;~2.0.3&quot;,
      &quot;karma-jasmine&quot;: &quot;~4.0.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.5.0&quot;,
      &quot;protractor&quot;: &quot;~7.0.0&quot;,
      &quot;ts-node&quot;: &quot;~8.3.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;~4.0.2&quot;
    }
  }
  </code></pre>