Skip to content

Error while installing multer-gridfs-storage along with multer@1.4.5-lts.1 #517

@sudipta9

Description

@sudipta9

Describe the bug

When I tried to install multer-gridfs-storage with the latest lts version of multer, it throws an error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: project@0.0.0
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@"*" 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 /home/ubuntu/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2022-10-05T05_29_53_065Z-debug-0.log

Environment

  • I'm using multer-gridfs-storage version ^5.0.2

  • My installed MongoDb version is ^4.9.1

  • I have Multer 1.4.5-lts.1 installed to upload files

  • The Node version used to run the code is 16.17.1

  • I'm using Mongoose connection objects to create storage instances. The Mongoose version installed is ^6.6.3

To Reproduce

  • update multer dependency to 1.4.5-lts.1

Expected behavior

  • installing multer-gridfs-storage should not throw any error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA feature or code that is not working properly

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions