imagemin / pngquant-bin

pngquant bin-wrapper that makes it seamlessly available as a local dependency
http://pngquant.org
Other
115 stars 95 forks source link

improper message #114

Closed bill2004158 closed 3 years ago

bill2004158 commented 4 years ago

https://github.com/imagemin/pngquant-bin/blob/master/lib/install.js#L25 it shows "pngquant failed to build, make sure that ${libpng} is installed"

I am trying to run command "npm install pngquant-bin" in mac. actually, I already installed libpng. and still got that error message.

and I find out, it is because cannot find zlib when config. then I installed zlib using command "brew install zlib". however, still error,

checked the config script, it seems missing "pkg-config", which cause cannot find zlib when config then I install pkg-config, using command "pkg-config"

and finally "npm install pngquant-bin" works properly.

so can you update that messge to show more detail about error?

1000ch commented 3 years ago

Solved by b80c567.