-
Notifications
You must be signed in to change notification settings - Fork 79
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 i compress-images #21
Comments
How is your script? How i can reproduce this problem? |
Hello, I'm using node v8.11.1, but I just tried it with the latest LTS v10.15.0 and the same errors happen. I'm in need of an image compression tool for my project and this one would be ideal. Thanks for the help. If I can provide any more information please let me know. |
Hello, How are you OS? I tested on Win 8.1 and use NodeJs v9.3.0 - works well for me. |
Try hand to install - https://github.com/tjko/jpegoptim Say to me result. Could you install or not. |
Hello again. Locally I'm on a mac (HIgh Sierra). After installing libjpeg (which is required by jpgoptim), the npm install was successful. So it's related to missing libraries on my system. Also of note, I also tried the install on my Ubuntu machine and there it install without any problems ( I did NOT need to do any extra installations of any library). Thanks for the help! |
issue seems to persist on Windows machines when installing package globally. |
Is installing libjpeg manually required now? I think this issue should stay open. |
@semiromid , I've the same issue on Windows 7 with Node LTS v10.16.3 |
Hi, did you solve this issue ? I've this problem on Windows 7 too ... |
@buglessir Hello. I will try to solve this problem. |
jpegoptim-1.3.0-win32-binary |
jpegoptim-win32 - V1.4.4 + 64bit
Use Win 7 x32 |
jpegoptim-bin (wrapper - this use in compress-images) |
To use jpegoptim you must May be a problems with installation and use on Additional problem |
Try install and use. |
Command isn't working. Output:
`npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
✔ cwebp pre-build test passed successfully
✔ giflossy pre-build test passed successfully
✔ gifsicle pre-build test passed successfully
⚠ The
/Users/smartnexus/Desktop/OrchestraManager/node_modules/guetzli/vendor/guetzli
binary doesn't seem to work correctly⚠ guetzli pre-build test failed
ℹ compiling from source
✖ Error: mkdir -p /Users/smartnexus/Desktop/OrchestraManager/node_modules/guetzli/vendor && make && mv bin/Release/guetzli /Users/smartnexus/Desktop/OrchestraManager/node_modules/guetzli/vendor/guetzli
Command failed: make && mv bin/Release/guetzli /Users/smartnexus/Desktop/OrchestraManager/node_modules/guetzli/vendor/guetzli
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing
libpng.pc' to the PKG_CONFIG_PATH environment variable No package 'libpng' found Package libpng was not found in the pkg-config search path. Perhaps you should add the directory containing
libpng.pc'to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing
libpng.pc' to the PKG_CONFIG_PATH environment variable No package 'libpng' found Package libpng was not found in the pkg-config search path. Perhaps you should add the directory containing
libpng.pc'to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing
libpng.pc' to the PKG_CONFIG_PATH environment variable No package 'libpng' found Package libpng was not found in the pkg-config search path. Perhaps you should add the directory containing
libpng.pc'to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
guetzli/guetzli.cc:23:10: fatal error: 'png.h' file not found
#include "png.h"
^~~~~~~
1 error generated.
make[1]: *** [obj/Release/guetzli.o] Error 1
make: *** [guetzli] Error 2
✔ jpeg-recompress pre-build test passed successfully
⚠ Command failed: /Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor/jpegoptim --version
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.9.dylib
Referenced from: /Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor/jpegoptim
Reason: image not found
⚠ jpegoptim pre-build test failed
ℹ compiling from source
✖ Error: Command failed: /bin/sh -c ./configure --prefix="/Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor" --bindir="/Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor"
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
Angels-MacBook-Air:OrchestraManager smartnexus$ npm i compress-images
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
⚠ Command failed: /Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor/jpegoptim --version
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.9.dylib
Referenced from: /Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor/jpegoptim
Reason: image not found
⚠ jpegoptim pre-build test failed
ℹ compiling from source
✖ Error: Command failed: /bin/sh -c ./configure --prefix="/Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor" --bindir="/Users/smartnexus/Desktop/OrchestraManager/node_modules/jpegoptim-bin/vendor"
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for jpeg_read_header in -ljpeg... no
Cannot find libjpeg or you have too old version (v6 or later required).
npm WARN OrchestraManager@1.0.0 No description
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jpegoptim-bin@5.1.0 postinstall:
node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jpegoptim-bin@5.1.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
`
The text was updated successfully, but these errors were encountered: