Bypass automatic npm dependency install

I'm working with Svelte 5, and have several dependencies that have Svelte 4 as a peer dependency, but continue to work. To get everything to install, however, I need to use npm install --force to ignore the version requirement mismatch, but the deployment process runs npm clean-install --progress=false against my will. Is there a way to stop it from doing that?
2 Replies
smallpepperz
smallpepperz5mo ago
Solved using the overrides key in package.json
Denver James Duran
Hi! May I know how does this work exactly? I figured it out thank you!
Want results from more Discord servers?
Add your server