-1

When I run

npm update

I get the following erros in my terminal;

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: react-scripts@4.0.1
npm ERR! Found: typescript@4.9.5
npm ERR! node_modules/typescript
npm ERR!   typescript@"^4.1.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^3.2.1" from react-scripts@4.0.1
npm ERR! node_modules/react-scripts
npm ERR!   react-scripts@"4.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: typescript@3.9.10
npm ERR! node_modules/typescript
npm ERR!   peerOptional typescript@"^3.2.1" from react-scripts@4.0.1
npm ERR!   node_modules/react-scripts
npm ERR!     react-scripts@"4.0.1" 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:

npm ERR! C:\Users\HHHP\AppData\Local\npm-cache_logs\2023-08-29T10_25_59_311Z-eresolve- report.txt npm ERR! A complete log of this run can be found in: C:\Users\HHHP\AppData\Local\npm- cache_logs\2023-08-29T10_25_59_311Z-debug-0.log

  • 1
    Does this answer your question? [How to handle conflicting peer dependencies?](https://stackoverflow.com/questions/69259024/how-to-handle-conflicting-peer-dependencies) – He3lixxx Sep 01 '23 at 02:00

0 Answers0