Is there a way to override nested dependency versions in npm?

Asked 2 years ago

There's a specific dependency for my new React Native application I'd like to install called "boost", but I think the current version has some bugs which prevent it from properly installing. How can I override this nested dependency?

Valentin Flowers

Monday, October 10, 2022

If you're npm version is at least 8.3, you can add an "override" section in your package.json file and explicitly list the dependencies you'd like to override. You can also use a third-party dependency called shrinkwarp to solve the issue for you.





Write an answer...

Cancel

Please follow our  Community Guidelines

Can't find what you're looking for?