Skip to content

Conversation

@alphaket14
Copy link

"multer": "^1.4.5-lts.1",
"multer-gridfs-storage": "^5.0.2",

this is causing the below 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

    "multer": "^1.4.5-lts.1",
    "multer-gridfs-storage": "^5.0.2",
this is causing the below 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
@Rajat-nautiyal
Copy link

your multer version "^1.4.5-lts.1" is incompatible with
"multer-gridfs-storage": "^5.0.2" so you have to install multer 1.44 version
just write
npm i multer@1.44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants