Unable to install ngx-slick-carousel

Viewed 487

I am trying to install slick-carousel in my angular project. I have been following the steps from here :- https://www.npmjs.com/package/ngx-slick-carousel. These two steps are working :-

 npm install jquery --save
 npm install slick-carousel --save

while doing the following command

npm install ngx-slick-carousel --save 

i am getting the following error

console image

2 Answers

There two ways to try in your case. It is probably because of upstream dependency conflict. Try doing as follows...

npm install --legacy-peer-deps --save ngx-slick-carousel

Next way is to use --force flag to install the package.

try remove node_module folder and .lock file and run npm install after npm install ngx-slick-carousel --save

Related