The patch file seens like have some problems.
See original GitHub issueWhen we run the command “npm install”, it install all needed modules automatically. But when it goes run patch-package, it display Failed to apply patch for package react-native. ERROR Failed to apply patch for package react-native
This happened because the patch file patches\react-native+0.61.5-jitsi.2.patch could not be parsed.
If you just upgraded patch-package, you can try running:
cd patches\react-native+0.61.5-jitsi.2.patc
patch -p1 -i h
npx patch-package react-native
cd ../..
Otherwise, try manually creating the patch file again.
If the problem persists, please submit a bug report:
https://github.com/ds300/patch-package/issues/new?title=Patch+file+parse+error&body=%3CPlease+attach+the+patch+file+in+question%3E
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jitsi-meet@0.0.0 postinstall: patch-package && jetify
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jitsi-meet@0.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I have no idea on whether some error on the patch file, could you share some your opinion for me? Thx a lot
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
You can go to {Project Root}\node_modules\patch-package\dist\patch\parse.js and modify it according to the method on this page(The line may be different). When ds300/patch-package publish this modification and everything will work normally
It Worked for me. Thanks a lot:)