dbushell / grunt-svg2png

Grunt plugin to rasterize SVG to PNG images using PhantomJS
MIT License
76 stars 37 forks source link

Fatal error: write EPIPE #40

Open lrobeson opened 7 years ago

lrobeson commented 7 years ago

Running this inside a Vagrant machine, I get this:

Rasterizing SVG to PNG (20 files)...
0% [                      ] 0.00% (0.1s) Fatal error: write EPIPE

Any ideas?

dan-peterson commented 7 years ago

Ran in to the same thing here and after poking around the root problem seemed to be PhantomJS.

I noticed NPM was installing a 1x version of PhantomJS as a dependency for grunt-svg2png, even though the package.json published here lists the dependency at: "~2.1.7".

When I had a closer look, it seemed NPM was installing an older version of grunt-svg2png that lists it's phantomJS dependency at: "~1.9.0". (even with a clean npm cache)

If you do a direct download from NPM: https://registry.npmjs.org/grunt-svg2png/-/grunt-svg2png-0.2.7.tgz You'll see the dependencies are off.

As a hot fix I updated my package.json to point directly to the github repo and the problem has been resolved. "grunt-svg2png": "https://github.com/dbushell/grunt-svg2png.git"

craigjmidwinter commented 6 years ago

Thanks Dan!

phyrexian commented 6 years ago

@dan-peterson Thanks; this worked for me!

RyanKlann commented 6 years ago

Amazing!

bmartel commented 6 years ago

It works! Thanks Dan!

hashar commented 6 years ago

So it seems that is fixed by https://github.com/dbushell/grunt-svg2png/commit/206065d519af7c55a8157db2a69cb9b125ccd728 and grunt-svg2png can probably deserve a new version to be tagged :]