-
Notifications
You must be signed in to change notification settings - Fork 81
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 install is broken by pngquant-bin dependency #46
Comments
i have de same problem |
It still fails for me with version
What's the last known good version of this library? |
Same problem on Win10 |
Faced the same issue.
|
|
The upgrade from 5.0.1 to 5.1.0 should have been a major version increase, not a minor. webpack-image-loader specifies ^5.0.0 as its dependency, meaning you need to manually edit the npm or yarn lock file to avoid this issue. A major version increment would avoid this issue. |
On a fresh laravel Install, I am getting these problems. Tried series of recommendations: tried : tried: tried: tried switching Nothing worked... I'm out of options. Anyone else managed to get passed this? |
Just realised I'm one of those terrible people who posts a problem online but never posts the solution. I fixed this issue using yarn by adding the following to my package.json |
@NewDiogenes Ahh.. the smallest glimmer of hope.
Any help GREATLY appreciated! |
Looks to me that the path to webpack.config.js is incorrect. I would recommend you not use the config file of a dependency like that, but instead copy it across into you project root. Otherwise, double check that the file actually exists at that path. |
For those like me who struggled with this even after trying all the solutions recommended, here is what I did to finally get it to work for me. I deleted the node_modules folder (rm -rf node_modules) Then it worked. Ultimately, I think the culprit might of been my anti-virus (Kaspersky). It's caused some issues before with some packages, which if really is a hassle, because when ever you run npm install / update, npm gives you an ok status even though some files might failed. @NewDiogenes Thanks for your help! Wasn't the actual problem, but it's appreciated anyways! |
in my case, the error happened because I was using ubuntu 18 and I was trying to run react-boilerplate, so at first the error was the image-webpack-loader, I have tried to install its dependencies and to match the versions and using older versions, but it was solved when I have installed libpng-dev on ubuntu |
Thanks @NewDiogenes! This is the only solution that worked for me and I've been trying to fix it for a few hours now 😢 |
Only this single line worked: [OS: Windows] |
To get this fixed I had to install libpng-devel, automake, libtool, autoconf. Then I got it compiled successfully. Maybe it will help somebody. |
It works for me, thanks! |
@Ke100n4ik it is devel in Redhat/Fedora Linux. In Ubuntu/Debian it is dev. |
For me on Windows it was Kaspersky all along (thanks, evinkuraga). |
Tried every suggestion above, but none worked. Then I installed Visual C++ Redistributable for Visual Studio 2015 both x86 and x64 packages, and everything worked instantly. Maybe this would help |
@bugleev what OS are you working on? |
I just ran into the issue on npm 3.5.2, npm 6.4.1 worked fine. I could solve it for npm 3 with the fix from @adsingh14 .
Just make sure the dependency gets added in |
I am getting increasingly frustrated by this issue. No matter what I do, this is where I end up:
We're on RHEL 7.6
Is there anything I'm missing? |
Make sure you have all the prerequisites installed |
I found my solution for alpine in imagemin/pngquant-bin#78 There are many more other solutions. Have a look there if nothing from here works for you. |
I finally fixed this issue by just installing these packages: |
why not use a precompiled wasm variant of pngquant? |
On Ubuntu you can try to fix it with |
Had the same issue. After trying all of the above answers without success I deleted node_modules folder and installed everything from the beginning: rm -r node_modules
npm install |
Por favor alguna solución para Windows!!! Gracias! He intentado todos los metodos y nada que funciona todavia |
For Window:OS, install the pngquant command line tool : Link Here, and add the path to your Enviroment Variable, then try Install again |
For Windows OS users:
|
I meet this problem when I run |
On MacOS |
"Add the correct IP for raw.githubusercontent.com in the dnsmasq config file on your router or local HOST file in your Windows OS." --- Thanks @SONIC3D , this worked for me. Remarks:
|
- Error: You must install additional module [npm install pngquant-bin --save]! Fixed bug. In windows [email protected] not working, use [email protected] imagemin/imagemin-pngquant#46
…nd Ubuntu - Windows: You must install additional module [npm install pngquant-bin --save]! It does not work properly on some OS! If you will get an error try use other module. Fixed bug. In windows [email protected] not working, use [email protected] - Ubuntu: Error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory. Not fixed bug. Not found and cannot install it. Link issues comments: imagemin/imagemin-pngquant#46
I've faced the same issue for a long time. I finally fork install deps
change require path const imagemin = require('imagemin');
const pngquant = require('imagemin-pngquant-mirror'); life gets easier from now on 👯♂️ |
Thanks a million! first works for me, I have tried many solutions, took nearly two days on this problem, but none is worked. |
for |
Thank you, It is useful on my win os! Just two simple steps here:
|
the bin file 'pngquant' in dependency pngquant-bin is not downloaded |
i solved my issue by using this command -----npm install --global windows-build-tools |
Thanks a lot! I solved it by
Thank you again for the detailed answer |
npm install fails with
pngquant failed to build, make sure that libpng is installed
.This pngquant-bin issue describes the problem in the pngquant-bin dependency.
The text was updated successfully, but these errors were encountered: