Error running yarn. pngquant failed to build - Windows 10


#1

The error is,
Error: pngquant failed to build, make sure that libpng-dev is installed.

I’m on Windows 10 and can’t find an easy way to get libpng-dev installed. Is there another solution to fix this?


#2

Ok. Seemed to have fixed it by modifying the package file to include
“resolutions”: {
“imagemin-webpack-plugin/imagemin-pngquant”: “5.0.1”
}