-
Notifications
You must be signed in to change notification settings - Fork 95
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
node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly #78
Comments
I have same case. it suddenly comes up last night. |
same issue :( |
anyone got any resolution for this? facing similar error
cc: |
I have the same problem beginning yesterday. |
Has anyone got a temporary fix for this? |
@danherd use pngquant-bin 3.1.1 for now. |
@anthonyaam alas, this package is a dependency of a dependency of a dependency... and the version being used is not something I can control! |
@danherd if you have someone on your project that hasn't run npm update yet you could have them check in a package-lock.json file that references pngquant-bin 3.1.1. If that's not an option then your situation becomes more difficult...I think you'll have to submit PRs to update the dependencies you're importing or just wait for this root issue to be resolved... |
@anthonyaam yeah I think I can probably wait it out - funnily enough, even with this error being displayed on |
Could you please provide a quick fix for this issue ? It's very boring.. |
The issue seems to be this commit added a few days ago. It stops npm if the build fails: And yes, I am also having this issue. |
@skatedieu did you find any workaround? Or we need to waot a fix? |
I don't have a workaround, unfortunately. We have to either just wait or submit a pull request removing this line of code. |
I had the same issue but it is resolved by first installing libpng-dev that fixed the issue for me. @anthonyaam no need to go to old versions for pngquant-bin |
@sroy19 I ran that in my server and got a message that no package libpng-dev is available. :/ Also, my system has libpng installed as well. |
@sroy19 This fix doesn't work for me. I always get this error when deploying my app.. |
To build pngquant binary you need to have installed make.
[..] |
@sro19 which version of libpng-dev did you install? |
I got similiar error for Laravel in Ubuntu 17.10. I used @sory19 method as below:
Still had same error. This is what I did.
And it worked after that. |
@velu76 Which version of libpng-dev did you install ? |
I am on CentOS and there is no libpng-dev package to install with yum. I have installed libpng. But this package wants libpng-dev and will not install without it. Why would it seem like a good idea to stop people from being able to deploy just because a package 5 dependencies down isn't fully working? |
This line is causing many people to stop from being able to deploy. (see this issue imagemin#78) Can this be changed to determine whether libpng-dev can be installed on the system and stop the process if it can be installed with a warning to the user to install libpng-dev, else just continue on installing npm packages? It seems that systems with a commad of apt-get have access to libpgn-dev. This line is literally stopping the deployment of apps on systems where libpng-dev cannot be installed. I am on CentOS and there is no libpng-dev package for that system. Thank you!
I made a pull request commenting that line out and adding notes for the npm install exit to be more discretionary to only environments for systems that can have libpgn-dev and just let other systems continue installing npm packages. Hopefully we get an answer soon. |
I tried installing pngquant-bin 3.1.1 but it too ended up in the error. Therefore, as mentioned earlier, I removed the node_modules folder and reinstalled everything from scratch. |
this reply did the trick for ubuntu 19 |
Thank u!! this works perfect!!!! |
The most upvoted answer here is from over a year ago so I'd like to confirm that on Ubuntu 19, the following worked for me:
|
yes...this works...thanks...was stuck on this for 2 days.... |
Did a fresh install on Fedora 31, got that problem here is the fix:
|
You have to install manually. On linux: apt-get install libpng-dev -y --no-install-recommends |
I got same error, It works for me thanks.. |
I got same error make 4.1-6 installed |
I have my Solution wowww it has been fixed!!!!! Ubuntu 15.0
Bingo!!! |
For me, "pngquant-bin" was a dependency only because of laravel-mix. Updating to laravel-mix 5.0 fixed it for me: https://github.com/JeffreyWay/laravel-mix/releases |
Thanks!! |
I finally fixed this issue by just installing these packages: |
|
On Ubuntu you can try to fix it with |
Works for me |
I have had the same problem on Windows and I have solved it like this: I have an ERROR in the npm package [email protected] when I install and use it on Windows but on MAC this version is working.
I fixed this error by installing a older version npm package
But on Ubuntu I could not fix it
This commands not working for me
|
Ubuntu fixes after xenial: https://launchpad.net/~ubuntu-security/+archive/ubuntu/ppa/+build/15108504 download and install for Ubuntu r 19.04, and after the http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/ |
Thanks this worked |
The host node_modules folder is copied in the docker build context, you should ignore the folder using
|
Like #78 (comment), please make sure to install prerequisites before installing this package. |
For 2022, this method still works! |
How does this work for aws lambda? It doesn't work on my local machine or the lambda instance. |
Per the above discussion,
|
This issue seems to resurrect every 6 to 8 months. Currently, it is happening on aws codebuilds. |
If someone encounters the vim node_modules/.pnpm/[email protected]/node_modules/pngquant-bin/lib/install.js |
worked 2023.10 wsl ubuntu 22 |
I'am getting this error today when i try to make a npm update on my project:
I already install libpng-dev library, and i always get this error.
The text was updated successfully, but these errors were encountered: