Open sunxf94 opened 5 years ago
Same thing for me, failing even after installing libjpeg libjpeg-devel
on a docker amazon linux image
I also had this problem, running from google functions. I was using Node 6, I seen in later versions these had been added to Node, I upgraded to 10 runtime, and the situation was resolved. I tried alot of different plugins and packages to add compatibility and it was no good.
What versions of node are you running?
@stot3 hi, I'm having the same issue and my node version is now 10.15.3, could you please help me? the error message:
JPEG support not compiled. Please install the libjpeg development package before building.
Error! Could not process file 'xxx'
I just removed my node_modules
folder and it works fine now π
On my Ubuntu system I installed package:
sudo apt-get install libglu1
I had problem with libGLU.so.1
I just removed my
node_modules
folder and it works fine now π
Thanks @nguyenthetoan , that fixed the issue for me too
Possibly cwebp-bin
issue #39 can explain the behavior above:
cwebp-bin
installation is triggered (it is a dependency of imagemin-webp
), and (for whatever reason) that installation goes on to compile, then support will be missing. Adding those dev libs afterwards will not change thatnode_modules
probably triggers another recompile in cwebp-bin
, but this time the dependent libraries are available for compilation and support is added.Long story short: looks like a cwebp-bin
issue and a workaround might be:
node_modules/cwebp-bin
npm i
I had the same issue at an docker-image with linux alpine. I solved it by installing following packages:
libjpeg
jpeg-dev
libjpeg-turbo-dev
I had this issue too on a Docker Linux image, I solved following the cwep Google guide: https://developers.google.com/speed/webp/docs/compiling#preparing_the_platform
TLDR: apt-get install -y libjpeg-dev libpng-dev libtiff-dev libgif-dev
anyone facing issue after installing the packages apt-get install -y libjpeg-dev libpng-dev libtiff-dev libgif-dev libwebp-dev
remove your node_modules and re install packages it will work
Π² ΠΌΠ΅Π½Π΅ ΡΠ°ΠΊΠ° ΠΆ ΠΏΠΎΠΌΠΈΠ»ΠΊΠ° Error: JPEG support not compiled. Please install the libjpeg development package before building. Ρ Π½Π° mac ΡΠΊ ΡΠ΅ Π²ΠΈΠΏΡΠ°Π²ΠΈΡΠΈ
Hello,
I use the library on a Mac Book Pro M3 (ios 14) and i face the issue. It seems that the version 1.3.2 of cwebp works but not 1.2.x and 1.1.x version.
I have this error :
ERROR in Error with 'static/media/xxx.521ff10e9173ca9b5984.jpg': JPEG support not compiled. Please install the libjpeg development package before building.
I tries to clean node_modules and re install project, but nothing works.
Anyone is facing this issue ?
My libjpeg-devel version is 1.2.0. I run my npm with imagemin-webp, but have this error. Could you help me? I have done my best for it
Error: JPEG support not compiled. Please install the libjpeg development package before building. Error! Could not process file /tmp/c7048e23-4296-4ddf-bab8-154b1f84e6c4 Error! Cannot read input picture file '/tmp/c7048e23-4296-4ddf-bab8-154b1f84e6c4'