question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The patch file seens like have some problems.

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
wxjv99commented, Aug 19, 2021

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

1reaction
vyomGupta736commented, Sep 19, 2021

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:)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent information provided when patching fails · Issue #20
To manually fix a patch file, Run: patch -p1 -i patches/react-native-deprecated-custom-components+0.1.1.patch --verbose --dry-run To list ...
Read more >
Handling Patch Rejects - eLinux.org
If you get rejects while patching, it means that not all of the patch could apply. It is possible that the rejects don't...
Read more >
Troubleshooting Patch Management issues
For troubleshooting patch management on Solaris 11, see the separate page ... To view a document that tracks the service status of the...
Read more >
Troubleshooting Patch - Tanium Documentation
Patches are not listed in the Patches view​​ If you are having difficulty getting patches to appear: Verify that the Patch - Is...
Read more >
QRadar: Unable to patch due to corrupted patch file - IBM
Problem. If the patch file that is downloaded from IBM® Fix Central is corrupted, you will not be able to use it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found