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

Patch file parse error

Open patchcad opened this issue 2 years ago • 1 comments

All of a sudden, after over two years of working happily, I am getting an error when running npm install:

patch-package 6.5.1
Applying patches...

**ERROR** Failed to apply patch for package axios-https-proxy-fix
    
  This happened because the patch file patches/axios-https-proxy-fix+0.17.1.patch could not be parsed.
   
  If you just upgraded patch-package, you can try running:
  
    patch -p1 -i patches/axios-https-proxy-fix+0.17.1.patch
    npx patch-package axios-https-proxy-fix
    
  Otherwise, try manually creating the patch file again.

axios-https-proxy-fix+0.17.1.patch

Seems to happen with many different versions on npm.

package.json includes this in the dev dependencies:

"patch-package": "^6.5.1"

patchcad avatar May 21 '23 18:05 patchcad

I'm getting the same. it fails on it's own generated patch the next build.

timothyerwin avatar Aug 11 '23 03:08 timothyerwin