-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
yarn add xxxx
error "pngquant pre-build test failed"
#20389
Comments
Hey @chad97 What version of Node are you using? Can you link to the repository by any chance? (Apologies if my Chinese is incorrect, using Google Translate) |
node: 10.16.3 I can link to repository, use is China's repository This problem will occasionally occur Your chinese nice ! |
Please link me to the repository. I'll take a look and try to reproduce the issue!
Thank you so much, my friend. |
yarn origin yarn origin my project my project |
I tried your project and the yarn origin you posted. And it seemed to work fine for me. Looks like you might not have Can you try installing that via |
After I installed libpng, this issue still occurs.
|
@lastingman 删除 node_modules 然后 |
@chad97 Problem is not solved, still presents
I figured that is because the great wall is blocking, so I set proxy to npm, but it doesn't work. The error message becomes |
how to solve it ,this problem occured when I yarn install |
The following content is generated by Google Translate, if there are any errors, please let me know Reason:The reason is that the default site generated by Gatsby depends on a package
Solution:
After @Renchongyi's reminder, I found that I was wrong. You can set the proxy by setting
|
You can try to rebuild locally,see: |
I meet the same problem. But I have been yarn it successful. |
Great! |
Step1: Find out yarn cache folder ( I was using yarn) by using $yarn cache dir Step2: Go to “/Users/yourname/Library/Caches/Yarn/v6” and find the “npm-pngquant-bin…” folder and find “.../npm-pngquant-bin-6.0.0-aff0d7e61095feb96ced379ad8c7294ad3dd1712-integrity/node_modules/pngquant-bin/lib/index.js” Step3: open above index file and change |
Hi guys, I have met the same problem. ProblemWhen I run
It says I'm not installing
SolutionHis solution works!
|
|
os: MacOS 10.15.2
pngquant pre-build test failed
, macOS cannot install "libpng-dev", only "libpng"Is there a stable solution?
有稳定的解决方案吗?
brew install libpng
Install once, reopeniterm
Usesudo yarn add xxx
to complete the installation, but the above problems will still occur next time, you can only installlibpng
repeatedly! It ’s bad!brew install libpng
安装一次,重新打开iterm
使用sudo yarn add xxx
可以完成安装,但是下次安装还是会出现以上问题,只能反复的安装libpng
很糟糕!The text was updated successfully, but these errors were encountered: