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

Fail the postinstall script if compiling fails #75

Merged
merged 3 commits into from
Mar 15, 2018

Conversation

evanj
Copy link

@evanj evanj commented Jan 2, 2018

If the pngquant binary does not work and the compile fails, npm should
fail the package installation, since it will not work. Previously it
would log an error, but return exit code 0 so npm would think the
package was installed correctly. This will make it easier for users to
figure out why pngquant isn't working.


Fixes #72

If the pngquant binary does not work and the compile fails, npm should
fail the package installation, since it will not work. Previously it
would log an error, but return exit code 0 so npm would think the
package was installed correctly. This will make it easier for users to
figure out why pngquant isn't working.
@sindresorhus sindresorhus changed the title install.js: Fail the postinstall script if compiling fails Fail the postinstall script if compiling fails Jan 2, 2018
@sindresorhus sindresorhus merged commit a518db6 into imagemin:master Mar 15, 2018
@vitia
Copy link

vitia commented Jul 3, 2018

Please test npm install pngquant-bin on node:alpine or centos:7. It fails on both, though it does work on node:8.11.2.

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

Successfully merging this pull request may close these issues.

3 participants