imagemin-pngquant icon indicating copy to clipboard operation
imagemin-pngquant copied to clipboard

npm error

Open rehbergerp opened this issue 6 years ago • 9 comments

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.

rehbergerp avatar Feb 19 '19 21:02 rehbergerp

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

dstarosta avatar Feb 19 '19 21:02 dstarosta

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/

dstarosta avatar Feb 19 '19 21:02 dstarosta

This seems relevant:

https://github.com/imagemin/pngquant-bin/pull/99

ChrissiQ avatar Feb 19 '19 21:02 ChrissiQ

https://github.com/imagemin/pngquant-bin/issues/78

aarondfrancis avatar Feb 19 '19 22:02 aarondfrancis

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.

dhruvaldarji avatar Feb 19 '19 22:02 dhruvaldarji

Here, another one blocked by this dependency

sjaurena avatar Feb 19 '19 22:02 sjaurena

changed "laravel-mix": "^1.0", to "laravel-mix": "^2.0", and resolved my issue

rehbergerp avatar Feb 19 '19 22:02 rehbergerp

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@*

blowsie avatar Sep 13 '19 09:09 blowsie

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

alfa-dev avatar Dec 29 '19 23:12 alfa-dev