Home > Software design >  Dependency error while installing SimplebarAngular module in Angular 12 project
Dependency error while installing SimplebarAngular module in Angular 12 project

Time:10-22

I have created an Angular project. The version is 12. enter image description here

Now I would like to install enter image description here

Can anyone tell me how to solve the error and install the angular module.

CodePudding user response:

SimplebarAngular requires Angular legacy-peer-deps=true , but you have Angular 12.x. If you would like to ignore these issues - just follow instructions from the error:

  • use npm install simplebar-angular --save --force

  • use npm install simplebar-angular --save --legacy-peer-deps

  • or you could add .npmrc to the project root to always apply legacy-peer-deps:

    legacy-peer-deps=true

  • Related