toddhgardner / perf-training-website

Example website for "Improving Web Performance" training.
https://frontendmasters.com/courses/web-perf/
MIT License
146 stars 118 forks source link

Pngquant failed to build, make sure that libpng is installed #2

Open linneati opened 1 year ago

linneati commented 1 year ago

I'm taking the web performance fundamentals course on frontendmasters but I can't install the dependencies in this repo and therefore can't do the exercise. When running npm install I get the following error

npm ERR! pngquant pre-build test failed npm ERR! Error: pngquant failed to build, make sure that libpng is installed

toddhgardner commented 1 year ago

I don't see this issue locally. make sure you are running the correct nodejs & npm versions, 18.12.1, 8.19.2

butkovv commented 1 year ago

I've got the same issue while trying to run this on MacOS Ventura 13.4.1 with yarn, even with correct nodejs & npm versions.