1000ch / atom-svgo

Minify SVG with SVGO 🐯
https://atom.io/packages/svgo
MIT License
14 stars 5 forks source link

svgo empties buffer #11

Open drvid opened 7 years ago

drvid commented 7 years ago

Hello, Previously this was working well for me... But using v2.8.1, anytime I svgo prettify or svgo minify in my Atom v1.15.0, it returns an empty buffer (no text in the editor). svgo still works on command line. I've tried uninstalling and re-installing the atom package, still get the same error. Any hints on how to get it working again? Or where could I go to read an error log? Thanks for this package and the support.

1000ch commented 7 years ago

@drvid How about re-installing with apm install svgo? Do you use macOS or Windows or Linux?

drvid commented 7 years ago

I've uninstalled and reinstalled v2.8.5 now via apm but still no luck. I am running Atom on Windows... And I finally got this error message when trying to minify:

Error: Command failed: C:\Users\Dave.atom\packages\svgo\node_modules.bin\svgo.cmd --string

Missing a slash after the local username perhaps? It might be nice if we could specify our own svgo executable path.

mrrocks commented 6 years ago

I have the same issue, latest version in Mac OS High Sierra:

Error: Command failed: /Users/franp/.atom/packages/svgo/node_modules/.bin/svgo --string --indent 2 --output - env: node: No such file or directory