epilande / gatsby-theme-gallery

🏞 A Gatsby Theme for adding a gallery to your site.
https://gatsby-theme-gallery.netlify.com
MIT License
47 stars 22 forks source link

Dependency conflict while installing the package #19

Open Elhamne opened 3 years ago

Elhamne commented 3 years ago

I'm trying to install gatsby-theme-gallery, but it fails with dependency conflict error. My gatsby version is 3.2.1 but the plugin expected the version 2.13.25.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-project@1.0.0
npm ERR! Found: gatsby@3.2.1
npm ERR! node_modules/gatsby
npm ERR!   gatsby@"^3.2.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer gatsby@"^2.13.25" from gatsby-theme-gallery@1.0.2
npm ERR! node_modules/gatsby-theme-gallery
npm ERR!   gatsby-theme-gallery@"*" 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.

What can I do without downgrading? Thanks