question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error with pngquant

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
sebastiendancommented, Nov 15, 2016

This issue should stay open anyway, shouldn’t it?

2reactions
callmecavscommented, Nov 27, 2016

@danb-cws @sebastiendan this error has something to do with the pngquant quality setting, as lowering that - from 90 to 80 - fixed this issue for me.

My guess is a high quality setting leads to pngquant taking forever, which leads to execa 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install is broken by pngquant-bin dependency #46 - GitHub
npm install fails with pngquant failed to build, make sure that libpng is installed. This pngquant-bin issue describes the problem in the ...
Read more >
Pngquant failed to build, make sure that libpng-dev is installed ...
I am trying to setup a react project. It has lot of dependencies and while downloading one of module it is throwing this...
Read more >
Fix "Error: pngquant failed to build, make sure that libpng-dev ...
I kept getting an error message “Error: pngquant failed to build, make sure that libpng-dev is installed” while trying to build a Nodejs ......
Read more >
pngquant failed to build, make sure that libpng-dev is installed ...
Npm Error: Error: pngquant failed to build, make sure that libpng-dev is installed. Rajesh Kumar January 21, 2020 comments off. Command I tried...
Read more >
pngquant — lossy PNG compressor
pngquant is a command-line utility and a library for lossy compression of PNG images. ... Please submit bug reports or feature requests on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found