Closed trisys3 closed 6 years ago
Hey, thanks for getting in touch!
Hmm, pngquant-bin
is already an optional dependency. Seems like it has been like that since v0.1.4 (released 2014): https://github.com/papandreou/node-pngquant/commit/14bce2746fd2d16b8802f25a72f2e38a39822880
Could you show an example of pngquant
failing to install?
Hmmm... you're right. Sorry, I think I got my packages confused. I was looking for the imagemin-pngquant
package, which does have pngquant-bin
as a non-optional dependency. Will close.
From what I can tell, it seems like the only reason for
pngquant-bin
to be here is ifpngquant
is not installed. That's fine, but the post-install script forpngquant-bin
doesn't always complete, even whenpngquant
can in fact be installed. My example is thetermux
app, which is admittedly a niche case, but I'm sure there are others. termux is on android, meaning ARM. I'm not positive that's the case, it might be an old version ofpngquant
, but regardless thepngquant-bin
version doesn't build, but there is a system version that does.If
pngquant-bin
can't be installed but the systempngquant
is already installed, this package still fails. This package is depended on by a whole lot of other packages, likewebpack
'simg-loader
package and all thegrunt
andgulp
image minifier packages.There are plenty of issues on the
pngquant-bin
package related to this issue, like one about trying the system package before using one of its pre-built versions. However, all of them seem to have stalled. I am proposing addingpngquant-bin
as an optional dep as more of a stop-gap measire than anything else.