sudo npm install -g gatsby-cli
gatsby new demosite
cd demosite
npm install gatsby-source-prismic
BOOM ERROR!
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: gatsby@4.0.2
npm ERR! node_modules/gatsby
npm ERR! gatsby@"^4.0.2" from the root project
npm ERR! peer gatsby@"^3.0.0-next.0 || ^4.0.0-next.0" from gatsby-source-prismic@5.0.2
npm ERR! node_modules/gatsby-source-prismic
npm ERR! gatsby-source-prismic@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer gatsby@"^2 || ^3" from @imgix/gatsby@1.6.13
npm ERR! node_modules/gatsby-source-prismic/node_modules/@imgix/gatsby
npm ERR! @imgix/gatsby@"^1.6.13" from gatsby-source-prismic@5.0.2
npm ERR! node_modules/gatsby-source-prismic
npm ERR! gatsby-source-prismic@"*" 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 /Users/adrianparr/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/adrianparr/.npm/_logs/2021-11-01T21_49_49_073Z-debug.log