I have created an Angular project. The version is 12.

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 --forceuse
npm install simplebar-angular --save --legacy-peer-depsor you could add
.npmrcto the project root to always applylegacy-peer-deps:legacy-peer-deps=true

