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

pngquant-bin@5.0.2 postinstall #104

Closed
wangquansh opened this issue May 26, 2019 · 8 comments
Closed

pngquant-bin@5.0.2 postinstall #104

wangquansh opened this issue May 26, 2019 · 8 comments

Comments

@wangquansh
Copy link

wangquansh commented May 26, 2019

node -v
11.10.0
npm -v
6.7.0

mozjpeg@6.0.1 postinstall /Users/workspace-dt-automation/dt-web/node_modules/mozjpeg
node lib/install.js

⚠ getaddrinfo ENOTFOUND raw.githubusercontent.com raw.githubusercontent.com:443
⚠ mozjpeg pre-build test failed
ℹ compiling from source
✖ RequestError: read ECONNRESET
at ClientRequest.req.once.err (/Users/workspace-dt-automation/dt-web/node_modules/got/index.js:111:21)
at Object.onceWrapper (events.js:285:13)
at ClientRequest.emit (events.js:197:13)
at TLSSocket.socketErrorListener (_http_client.js:397:9)
at TLSSocket.emit (events.js:197:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at processTicksAndRejections (internal/process/next_tick.js:76:17)

pngquant-bin@5.0.2 postinstall /Users/workspace-dt-automation/dt-web/node_modules/pngquant-bin
node lib/install.js

⚠ read ECONNRESET
⚠ pngquant pre-build test failed
ℹ compiling from source
✖ Error: pngquant failed to build, make sure that libpng is installed
at Promise.all.then.arr (/Users/workspace-dt-automation/dt-web/node_modules/bin-build/node_modules/execa/index.js:231:11)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pngquant-bin@5.0.2 postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pngquant-bin@5.0.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Why would it fail?

@MWalid
Copy link

MWalid commented Jun 11, 2019

Here I'm having the same on Centos 7

@katoto
Copy link

katoto commented Sep 12, 2019

how to slove??????

@zuby64
Copy link

zuby64 commented Sep 13, 2019

@andiy-wang i am having the same problem.Have you solved it by now...

@gugujiCheng
Copy link

the same problem

@creeptosis
Copy link

yum -y install libpng-devel works for me

@hichamfilty
Copy link

i trying to install gatsby and keep getting same ERR. WHEN I DO: gatsby new file-name

@1000ch
Copy link
Contributor

1000ch commented Jul 6, 2020

Please make sure that the dependencies are installed.

@1000ch 1000ch closed this as completed Jul 6, 2020
@leesren
Copy link

leesren commented Jul 16, 2021

I use Mac and It work for me.

brew install libpng
npm  i 

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

9 participants