imagemin-pngquant
imagemin-pngquant copied to clipboard
npm error
npm ERR! [email protected] postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node lib/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pngquant-bin package,
npm ERR! not with npm itself.
We also started getting an error during NPM builds today. It looks some API call fails with a 503 status code.
> [email protected] postinstall E:\Development\Git\someapp\node_modules\pngquant-bin
> node lib/install.js
‼ Response code 503 (Backend unavailable, connection timeout)
‼ pngquant pre-build test failed
i compiling from source
× Error: pngquant failed to build, make sure that libpng-dev is installed
at Promise.all.then.arr (E:\Development\Git\someapp\node_modules\execa\index.js:231:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch
It looks like raw.github.com is having issues. This URL throws a 503: https://raw.github.com/imagemin/pngquant-bin/v5.0.1/vendor/
This seems relevant:
https://github.com/imagemin/pngquant-bin/pull/99
https://github.com/imagemin/pngquant-bin/issues/78
Same issue for my team. We require successful builds on all code changes, and this dependency of a dependency...etc. has all but brought our team to a complete halt.
Here, another one blocked by this dependency
changed "laravel-mix": "^1.0", to "laravel-mix": "^2.0", and resolved my issue
I also am having issues installing on windows
$ npm install imagemin-pngquant
> [email protected] postinstall C:\Projects\test\node_modules\pngquant-bin
> node lib/install.js
‼ unable to get local issuer certificate
‼ pngquant pre-build test failed
i compiling from source
× Error: pngquant failed to build, make sure that libpng-dev is installed
at Promise.all.then.arr (C:\Projects\test\node_modules\execa\index.js:231:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[email protected] C:\Projects\test
+-- UNMET PEER DEPENDENCY [email protected]
`-- UNMET PEER DEPENDENCY webpack-cli@*
You have to install manually.
On linux:
apt-get install libpng-dev -y --no-install-recommends
source: https://github.com/imagemin/imagemin-pngquant/issues/46#issuecomment-379604951