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

**ERROR** Failed to apply patch for package react-native-i18n

Open Keshara1997 opened this issue 7 months ago • 1 comments

stderr: '\n' + 'ERROR Failed to apply patch for package react-native-i18n\n' + ' \n' + ' This happened because the patch file patches\react-native-i18n+2.0.15.patch could not be parsed.\n' + ' \n' + ' If you just upgraded patch-package, you can try running:\n' + ' \n' + ' cd patches\react-native-i18n+2.0.15.patc\n' + ' patch -p1 -i h\n' + ' npx patch-package react-native-i18n\n' + ' cd ../..\n' + ' \n' + ' Otherwise, try manually creating the patch file again.\n' + ' \n' + ' If the problem persists, please submit a bug report:\n' + ' \n' + ' https://github.com/ds300/patch-package/issues/new?title=Patch+file+parse+error&body=%3CPlease+attach+the+patch+file+in+question%3E\n' + '\n' + '\n' + 'error Command failed with exit code 1.', cwd: 'D:\GIT\metamask-mobile', failed: true, timedOut: false, isCanceled: false, killed: false }

Node.js v20.19.2

Keshara1997 avatar May 22 '25 09:05 Keshara1997

可能是windows换行符问题 转换为LF

qiangshushu avatar Jun 26 '25 09:06 qiangshushu