title: Module not found: Error: Can't resolve 'chart.js' in /node_modules/ng2-charts/fesm2015'
body: <p>I am encountering the error:</p>
  <p><strong>ERROR in ./node_modules/ng2-charts/fesm2015/ng2-charts.js</strong></p>
  <p><strong>Module not found: Error: <em>Can't resolve 'chart.js'</em> in /node_modules/ng2-charts/fesm2015'</strong></p>
  <p>I did &quot;npm install --save ng2-charts&quot;. Could you help me to understand why this error is thrown?</p>
  <p>My package.json</p>
  <pre><code>&quot;dependencies&quot;: {
  &quot;@angular/animations&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/common&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/compiler&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/core&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/fire&quot;: &quot;^5.2.3&quot;,
  &quot;@angular/forms&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/platform-browser&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/platform-browser-dynamic&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/router&quot;: &quot;~8.2.9&quot;,
  &quot;@ngrx/store&quot;: &quot;^8.6.0&quot;,
  &quot;@ngrx/store-devtools&quot;: &quot;^8.6.0&quot;,
  &quot;bootstrap&quot;: &quot;^4.4.1&quot;,
  &quot;firebase&quot;: &quot;^7.6.0&quot;,
  &quot;ng2-charts&quot;: &quot;^2.2.3&quot;,
  &quot;rxjs&quot;: &quot;~6.4.0&quot;,
  &quot;sweetalert2&quot;: &quot;^9.5.3&quot;,
  &quot;tslib&quot;: &quot;^1.10.0&quot;,
  &quot;zone.js&quot;: &quot;~0.9.1&quot; }
  
  &quot;devDependencies&quot;: {
  &quot;@angular-devkit/build-angular&quot;: &quot;^0.803.21&quot;,
  &quot;@angular/cli&quot;: &quot;~8.3.8&quot;,
  &quot;@angular/compiler-cli&quot;: &quot;~8.2.9&quot;,
  &quot;@angular/language-service&quot;: &quot;~8.2.9&quot;,
  &quot;@types/jasmine&quot;: &quot;~3.3.8&quot;,
  &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
  &quot;@types/node&quot;: &quot;~8.9.4&quot;,
  &quot;codelyzer&quot;: &quot;^5.0.0&quot;,
  &quot;jasmine-core&quot;: &quot;~3.4.0&quot;,
  &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;,
  &quot;karma&quot;: &quot;~4.1.0&quot;,
  &quot;karma-chrome-launcher&quot;: &quot;~2.2.0&quot;,
  &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.0.1&quot;,
  &quot;karma-jasmine&quot;: &quot;~2.0.1&quot;,
  &quot;karma-jasmine-html-reporter&quot;: &quot;^1.4.0&quot;,
  &quot;protractor&quot;: &quot;~5.4.0&quot;,
  &quot;ts-node&quot;: &quot;~7.0.0&quot;,
  &quot;tslint&quot;: &quot;~5.15.0&quot;,
  &quot;typescript&quot;: &quot;~3.5.3&quot; }
  </code></pre>
  <p>Error in broswer</p>
  <p><a href="https://i.stack.imgur.com/CX903.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CX903.png" alt="enter image description here" /></a></p>