ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.26k stars 287 forks source link

Patch file parse error #467

Open patchcad opened 1 year ago

patchcad commented 1 year ago

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"

timothyerwin commented 1 year ago

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