Pngquant - command failed when running production compile

I am getting the following error when running yarn run build:production in my theme folder:

I ran rm -rf node_modules && yarn to give it a good cleanout, and node_modules was rebuilt without a hitch. ```yarn run build`` works fine as well, it seems to be related to PNG optimisation.

PNG Quant version:

1 Like

I think I hit this same error last week, and fixed it by setting pngquant to null in webpack.config.optimize.js - pngquant: null,

That took care of it. I wonder if it’s a problem with PNGQuant itself.