Home > Back-end >  Error while running npm install @material-ui/core in VSCode in windows
Error while running npm install @material-ui/core in VSCode in windows

Time:07-04

PS C:\Users\misss\tnodejs_ec> npm install @material-ui/core

npm WARN config global --global, --local are deprecated. Use --location=global instead. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected] npm ERR! node_modules/@material-ui/core npm ERR! @material-ui/core@"*" 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! See C:\Users\misss\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\misss\AppData\Local\npm-cache_logs\2022-07-04T09_27_24_111Z-debug-0.log PS C:\Users\misss\tnodejs_ec>

CodePudding user response:

If you really want to install material UI then use force to npm no matter what happen you have to install this forcefully.

npm install @material-ui/core --force

  • Related