angular-responsive-carousel installation issue - IvyCarouselModule

Viewed 667

I am trying to install npm i angular-responsive-carousel, but I am getting following error

npm ERR! While resolving: agp.v2.ui@0.0.0
npm ERR! Found: @angular/common@13.1.3
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~13.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^11.2.14" from angular-responsive-carousel@2.1.2
npm ERR! node_modules/angular-responsive-carousel
npm ERR!   angular-responsive-carousel@"*" 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.
3 Answers

I had the same problem but I fixed it with legacy-peer-deps it will allow you to ignore old dependencies for this package. here is the code

npm i angular-responsive-carousel --legacy-peer-deps

Related