fluid
fluid copied to clipboard
Issue when installing packages inside studio folder
Steps to reproduce the error:
- Run
npm install
in the root folder - Run
cd studio && npm install
The following error occurs:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @sanity/[email protected]
npm ERR! node_modules/@sanity/icons
npm ERR! @sanity/icons@"^3.3.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @sanity/icons@"^2.3.1" from [email protected]
npm ERR! node_modules/groqd-playground
npm ERR! groqd-playground@"^0.0.20" 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!
npm ERR! For a full report see:
npm ERR! /Users/shreyas/.npm/_logs/2024-08-16T04_56_22_979Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /Users/shreyas/.npm/_logs/2024-08-16T04_56_22_979Z-debug-0.log
I ran npm install --force
and it fixed the issue temporarily and I'm able to run the project just fine. But don't know if this will cause any issues in the future during development.