ds300 / patch-package

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

**ERROR** Failed to apply patch for package @enso-ui/charts at path node_modules/@enso-ui/charts #376

Open sbwengineer opened 2 years ago

sbwengineer commented 2 years ago

I have faced this issue while installing nuxt frontend of laravel-enso.

  This error was caused because patch-package cannot apply the following patch file:

    patches/@enso-ui+charts+3.0.14.patch

  Try removing node_modules and trying again. If that doesn't work, maybe there was
  an accidental change made to the patch file? Try recreating it by manually
  editing the appropriate files and running:

    patch-package @enso-ui/charts

  If that doesn't work, then it's a bug in patch-package, so please submit a bug
  report. Thanks!

    https://github.com/ds300/patch-package/issues

How can I solve this issue?

I removed node_modules and tried installing again, but it doesn't work.

If anyone met this issue before, please help me.

Many thanks.

pnthach95 commented 2 years ago

Check if your EOL file is LF, if not change it to LF, save and apply patch

image