Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm error #58

Open
rehbergerp opened this issue Feb 19, 2019 · 9 comments
Open

npm error #58

rehbergerp opened this issue Feb 19, 2019 · 9 comments

Comments

@rehbergerp
Copy link

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.

@dstarosta
Copy link

dstarosta commented Feb 19, 2019

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
Copy link

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/

@ChrissiQ
Copy link

This seems relevant:

imagemin/pngquant-bin#99

@aarondfrancis
Copy link

imagemin/pngquant-bin#78

@dhruvaldarji
Copy link

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.

@sjaurena
Copy link

Here, another one blocked by this dependency

@rehbergerp
Copy link
Author

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

@blowsie
Copy link

blowsie commented Sep 13, 2019

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

@alfa-dev
Copy link

alfa-dev commented Dec 29, 2019

You have to install manually.

On linux:

apt-get install libpng-dev -y --no-install-recommends

source: #46 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants