error with pngquant
See original GitHub issueHi, I am trying to deploy to Google App Engine (node). This code works fine locally and on Heroku. However on GAE, I get the following build error and the code dosnt run. I have not been able to work out how to apply the suggested fix “make sure that libpng-dev is installed”
pngquant-bin@3.1.1 postinstall /app/node_modules/pngquant-bin node lib/install.js
ÔÜá The /app/node_modules/pngquant-bin/vendor/pngquant
binary doesn’t seem to work correctly
ÔÜá pngquant pre-build test failed
Ôä╣ compiling from source
Ô£û Error: pngquant failed to build, make sure that libpng-dev is installed
at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js💯13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
This issue should stay open anyway, shouldn’t it?
@danb-cws @sebastiendan this error has something to do with the
pngquant
quality setting, as lowering that - from90
to80
- fixed this issue for me.My guess is a high quality setting leads to
pngquant
taking forever, which leads toexeca
timing out and throwing an error prematurely.Updated: running the build in a CI setup caused it to fail with quality at
80
. likely because the vm is slower.