-2

I tried using --force , but of no use.

enter image description here

error code -

    Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency to   "@angular/common" (requires "^7.0.0" (extended), would install "9.1.9").
 Package "@swimlane/ngx-charts" has an incompatible peer dependency to "@angular/animations" (requires "6.x" (extended), would install "9.1.9").
                  Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0" (extended), would install "9.1.9").
                  Package "@swimlane/ngx-charts" has an incompatible peer dependency to "@angular/platform-browser" (requires "6.x" (extended), would install "9.1.9").
                  Package "@swimlane/ngx-charts" has an incompatible peer dependency to "@angular/platform-browser-dynamic" (requires "^6.0.0" (extended), would install "9.1.9").
                  Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency to "@angular/forms" (requires "^7.0.0" (extended), would install "9.1.9").
                  Package "codelyzer" has an incompatible peer dependency to "@angular/core" (requires ">=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0" (extended), would install "9.1.9").
                  Package "ngx-jsoneditor" has an incompatible peer dependency to "rxjs" (requires "^5.1.0", would install "6.5.5").
                  Package "ngx-jsoneditor" has an incompatible peer dependency to "zone.js" (requires "^0.8.4", would install "0.10.3").
Owais
  • 57
  • 1
  • 6

3 Answers3

1

you need to install the compatible version of each dependency here's the code for that

npm i --save dependencyName@version
SaboSuke
  • 634
  • 6
  • 21
  • Can you post some example from above error... I am new to angular @Ess – Owais Jun 01 '20 at 09:11
  • if you already have your dependency installed then use this `ng update swimlane/ngx-charts@~8.2.12` otherwise do it this way `npm i swimlane/ngx-charts@^8.2.12 --save`. If you need more details check this: [checkMe](https://stackoverflow.com/questions/55639190/upgrading-ngx-bootstrap-3-0-1-to-4-0-1) – SaboSuke Jun 01 '20 at 09:18
0

try adding force flag

ng update @angular/core --force
Shlok Nangia
  • 2,355
  • 3
  • 16
  • 24
0

Try to below command hopefully, it will be fixed

ng update @angular/cli @angular/core
Soura Ghosh
  • 879
  • 1
  • 9
  • 16