-1

I am trying to install axios but I am getting this error :

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: multer-gridfs-storage@5.0.2
npm ERR! Found: multer@1.4.5-lts.1
npm ERR! node_modules/multer
npm ERR!   multer@"^1.4.5-lts.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer multer@"^1.4.2" from multer-gridfs-storage@5.0.2
npm ERR! node_modules/multer-gridfs-storage
npm ERR!   multer-gridfs-storage@"^5.0.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: multer@1.4.4
npm ERR! node_modules/multer
npm ERR!   peer multer@"^1.4.2" from multer-gridfs-storage@5.0.2
npm ERR!   node_modules/multer-gridfs-storage
npm ERR!     multer-gridfs-storage@"^5.0.2" 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\iaane\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\iaane\AppData\Local\npm-cache\_logs\2023-08-03T03_13_50_453Z-d
Phil
  • 157,677
  • 23
  • 242
  • 245
Astha Negi
  • 27
  • 2
  • That error has absolutely nothing to do with installing Axios – Phil Aug 03 '23 at 03:23
  • Without any more context it would be almost impossible to help you. – Camilo Aug 03 '23 at 03:26
  • Looking at the error messages, I think the error is because of `multer`. `multer-gridfs-storage` requires a specific version of multer ("^1.4.2"), but you have `multer ("1.4.5-lts.1")`. Also, a conflict of dependency `multer@1.4.4` with another package appears to exist. – Raky Aug 03 '23 at 03:32

0 Answers0