patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

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

Open nam270903 opened this issue 1 year ago • 1 comments
trafficstars

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

nam270903 avatar May 10 '24 09:05 nam270903

Most likely you are trying to apply a patch to a code that your patch file doesn't go with or your patch file has other issues.

YasharF avatar Apr 10 '25 23:04 YasharF