You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx shadcn@latest add switch
✔ Checking registry.
⠙ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
Command failed with exit code 1: npm install @radix-ui/react-switch
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/date-fns
npm error date-fns@"^4.1.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer date-fns@"^2.28.0 || ^3.0.0" from [email protected]
npm error node_modules/react-day-picker
npm error react-day-picker@"^8.10.1" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/date-fns
npm error peer date-fns@"^2.28.0 || ^3.0.0" from [email protected]
npm error node_modules/react-day-picker
npm error react-day-picker@"^8.10.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\Abhijit\AppData\Local\npm-cache_logs\2025-06-14T06_53_01_030Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\Abhijit\AppData\Local\npm-cache_logs\2025-06-14T06_53_01_030Z-debug-0.log
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
npx shadcn@latest add switch
✔ Checking registry.
⠙ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
Command failed with exit code 1: npm install @radix-ui/react-switch
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/date-fns
npm error date-fns@"^4.1.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer date-fns@"^2.28.0 || ^3.0.0" from [email protected]
npm error node_modules/react-day-picker
npm error react-day-picker@"^8.10.1" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/date-fns
npm error peer date-fns@"^2.28.0 || ^3.0.0" from [email protected]
npm error node_modules/react-day-picker
npm error react-day-picker@"^8.10.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\Abhijit\AppData\Local\npm-cache_logs\2025-06-14T06_53_01_030Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\Abhijit\AppData\Local\npm-cache_logs\2025-06-14T06_53_01_030Z-debug-0.log
npx shadcn@latest add switch --force
error: unknown option '--force'
npx shadcn@latest add switch --legacy-peer-deps
error: unknown option '--legacy-peer-deps'
if anybody facing same issues and resolved it pls help me
Beta Was this translation helpful? Give feedback.
All reactions