search

Home  >  Q&A  >  body text

How to resolve errors when installing dependencies?

npm install @material-ui/core @material-ui/icons @material-ui/labs @react-google-maps/api axios google-map-react

npm Error! Code ERESOLVE npm error! ERESOLVE cannot be resolved npm error! npm error! While resolving: @testing-library/[email protected] npm error! Found: [email protected] npm error! node_modules/react npm error! npm error! For a full report see: npm error! C:\Users\SENSA\AppData\Local\npm-cache_logs\2023-04-07T05_56_29_194Z-eresolve-report.txt

npm Error! A complete log of this run can be found in: npm error! C:\Users\SENSA\AppData\Local\npm-cache_logs\2023-04-07T05_56_29_194Z-debug-0.log

P粉312631645P粉312631645246 days ago432

reply all(1)I'll reply

  • P粉615886660

    P粉6158866602024-03-29 15:06:52

    Maybe your npm version is inappropriate. You can try the following steps:

    1. Use --legacy-peer-deps to install dependencies, run npm install @material-ui/core @material-ui/icons @material-ui/labs @react -google-maps/api axios google -map-react --legacy-peer-deps.

    2. If the error still occurs, delete all node_modules and run the command again.

    3. If you still get an error, please use npm --version to check your npm version, and then update to the latest npm version to solve this problem.

    reply
    0
  • Cancelreply