Every time I execute prisma generate
, the following error is displayed:
Prisma schema loaded from prisma/schema.prisma
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1a69736e7f5a2a342b342a">[email protected]</a>
npm ERR! Found: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="087a6d696b7c48393f2638263a">[email protected]</a>
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR! peer react@"^17.0.2" from <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="eb858e939fabdadac5dac5d9">[email protected]</a>
npm ERR! node_modules/next
npm ERR! next@"^11.1.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.1" from <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="483a2d292b3c652c272508797f66786679">[email protected]</a>
npm ERR! node_modules/react-dom
npm ERR! react-dom@"17.0.1" 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! A complete log of this run can be found in:
I attempted running the command with --legacy-peer-deps, but it returned this message:
unknown or unexpected option: --legacy-peer-deps
Installing everything and running the app are not causing any issues for me. I even went as far as deleting the node_modules
folder and yarn.lock
file before trying a fresh yarn install --legacy-peer-deps
, yet the same error persists. I also gave npm a try using similar steps. At this point, I'm uncertain about what other action I could take.