khushi2706 / Blog-App-using-MERN-stack

Blog App build with MERN stack
https://blog-app-using-mern-stack-beta.vercel.app
76 stars 107 forks source link

Not able to run frontend #20

Open keshav-repo opened 8 months ago

keshav-repo commented 8 months ago

I am using node version v20.9.0. When i try to install I am getting error

npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@0.1.0 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"^18.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.0" from @mui/styles@5.14.15 npm ERR! node_modules/@mui/styles npm ERR! @mui/styles@"^5.14.3" 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. npm ERR! npm ERR! npm ERR! For a full report see:

slayer321 commented 8 months ago

@keshav-repo , you can try this solution. It works for me https://stackoverflow.com/a/71842239

younes-Raymond commented 4 months ago

Look Bro I solve This Problem In the commit I did It In Sing Up But The Admin Not Merger My changes Yet There's Just a conflict betwen versions of dependencies If you Got this Probleme Again All You Need to do is npm install --legacy-peer-deps