Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing multer-gridfs-storage along with [email protected] #517

Open
sudipta9 opened this issue Oct 5, 2022 · 6 comments
Labels
bug A feature or code that is not working properly

Comments

@sudipta9
Copy link

sudipta9 commented Oct 5, 2022

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: [email protected]
npm ERR! Found: [email protected]
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 [email protected]
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
@sudipta9 sudipta9 added the bug A feature or code that is not working properly label Oct 5, 2022
@devconcept
Copy link
Owner

There is a fix on develop but I will not be able to publish until at least one week. I'm having some personal issues right now and that is the cause of the module not being maintained. It will be resolved in a week. I apologize for the inconvenience.

@ujjwalpathaak
Copy link

@devconcept hello any update on this issue?

@sudipta9
Copy link
Author

@ujjwalpathaak for now try changing the dependency from "multer-gridfs-storage": "^5.0.2" to "multer-gridfs-storage": "github:habur/multer-gridfs-storage”.

Note: this is a temporary solution as of now

Copy link

Hello guys.
Could you give a rough estimate of when this will be included in the release?
Thank you so much in advance!

@akshittomar
Copy link

I am facing the same problem error log is :
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
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 [email protected]
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\HP\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\HP\AppData\Local\npm-cache_logs\2023-03-20T08_20_12_305Z-debug-0.log

@sudipta9
Copy link
Author

I am facing the same problem error log is : npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] 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 [email protected] 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\HP\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\HP\AppData\Local\npm-cache_logs\2023-03-20T08_20_12_305Z-debug-0.log

Try this one
#517 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A feature or code that is not working properly
Projects
None yet
Development

No branches or pull requests

4 participants