0

Actually, I have a working project in angular but right now I am just trying to revamp the project So I install the npm on this project using npm install command but I got the bellow error. Please check the screenshot

enter image description here

Please help me to reach out this issue

2 Answers 2

2

By reading the errors, it seems like the selected-country@^5.0.1 needs @angular/cdk@~12.x, but you only have @angular/cdk@^10.2.3

You might want to try this:

npm update @angular/cdk@12

This basically will try to update your angular/cdk to version 12.

If this doesn't work. You can also try downgrading your Node.js to a lower version. I had to also downgrade my Node.js when I updated my entire Angular project from version 12 to 13.

If this still doesn't work, you can try out these methods answered by our community.

Unable to resolve dependency tree error when installing npm packages

Sign up to request clarification or add additional context in comments.

Comments

1

Try npm install --legacy-peer-deps

4 Comments

Yes, it's working. May I know the exact issue?
It's a version issue... docs.npmjs.com/cli/v7/using-npm/config#legacy-peer-deps Check here for further.
Make it green if you are satisfied with the answer. It would help others.
Yes, I forget to do this. Now done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.