Solution: After searching in stack overflow I found out that setting --legacy-peer-deps to true will resolve this conflict. Because this will disable strict version checking for peer dependencies .
Kindly correct me if I am wrong.
Day 1 Of Learning React Js. Started with @Hiteshdotcom
react tutorials.
But I encountered an error at the very beginning, after inputting create-react-app, got an "peer dependency" error which was fixed using npm config set --legacy-peer-deps true and npm i.
Problem Here: If there are 2 packages A and B And both of them depend on C, but depend on different versions of C, it causes a conflict. Because A requires to download 1.0 version Of C and B requires 2.0 version of C which causes conflict.