ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.36k stars 290 forks source link

Failed to apply patch for package react-native-ui-lib at path node_modules/react-native-ui-lib #524

Open nam270903 opened 4 months ago

nam270903 commented 4 months ago

When I try to run npm install --force It said that **ERROR Failed to apply patch for package react-native-ui-lib at path

node_modules/react-native-ui-lib

This error was caused because patch-package cannot apply the following patch file:

patches/react-native-ui-lib+7.0.0.patch

Try removing node_modules and trying again. If that doesn't work, maybe there was an accidental change made to the patch file? Try recreating it by manually editing the appropriate files and running:

patch-package react-native-ui-lib

If that doesn't work, then it's a bug in patch-package, so please submit a bug report. Thanks!

https://github.com/ds300/patch-package/issues**
****

I tried removing node_modules and then npm install again but that did not work. How to fix this issue, my Curren node version is 17.0.0 This issue still happen when I use latest node version