facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.72k stars 26.85k forks source link

error while runingthe code #13589

Open Karthi-06 opened 5 months ago

Karthi-06 commented 5 months ago

npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: material-ui-chip-input@1.1.0 npm error Found: @material-ui/core@4.11.2 npm error node_modules/@material-ui/core npm error @material-ui/core@"^4.11.2" from the root project npm error peer @material-ui/core@"^4.0.0" from @material-ui/icons@4.11.2 npm error node_modules/@material-ui/icons npm error @material-ui/icons@"^4.11.2" from the root project npm error 1 more (@material-ui/lab) npm error npm error Could not resolve dependency: npm error peer @material-ui/core@"^1.0.0 || ^3.1.0" from material-ui-chip-input@1.1.0 npm error node_modules/material-ui-chip-input npm error material-ui-chip-input@"^1.1.0" from the root project npm error npm error Conflicting peer dependency: @material-ui/core@3.9.4 npm error node_modules/@material-ui/core npm error peer @material-ui/core@"^1.0.0 || ^3.1.0" from material-ui-chip-input@1.1.0 npm error node_modules/material-ui-chip-input npm error material-ui-chip-input@"^1.1.0" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error C:\Users\Karthik Shetty\AppData\Local\npm-cache_logs\2024-05-16T07_19_17_013Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\Karthik Shetty\AppData\Local\npm-cache_logs\2024-05-16T07_19_17_013Z-debug-0.log

jainlokesh318 commented 5 months ago

It seems you are facing peer dependency conflicts, either you can use yarn which can resolve it right away or you can do manually