Comments (15)
Also waiting for an aswer. This is frustrating.
from gulp-image.
I encountered this issue on Debian Stretch (9), while it was working on Jessie and Wheezy.
You have to manually update the bin until there's another solution.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install jpegoptim
make sure you rename the jpegoptim in your node_modules folder to jpegoptim.bak or something, so you can go back if you want. You can also remove it, of course.
sudo ln -s /usr/bin/jpegoptim /your/node_modules/jpegoptim-bin/vendor/jpegoptim
from gulp-image.
For the record, on MacOS:
brew install libjpeg
npm install --global jpegoptim-bin
from gulp-image.
Even i am facing the same issue. Looking for some help.
from gulp-image.
also getting the same error unless I specify extensions in which case, it only processes .png
from gulp-image.
+1
from gulp-image.
I'm getting the same as well:
events.js:160
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at exports._errnoException (util.js:1026:11)
at WriteWrap.afterWrite (net.js:799:14)
from gulp-image.
I cannot reproduce this issue, let me isolate the problem (which envs or settings).
Does anyone upload settings and images that reproduce this?
from gulp-image.
I get the same error unless I remove jpg from the glob or set mozjpeg to false. I haven't specified any other settings.
Also, the only other thing potentially worth noting about the 1 jpg I have is that now when it runs it says it Cannot improve upon XX.XX KB.
from gulp-image.
Same error
events.js:160
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at exports._errnoException (util.js:1022:11)
at WriteWrap.afterWrite (net.js:804:14)
During installation there is an error:
ubuntu@ubuntu-xenial:/home/project$ npm i
✔ gifsicle pre-build test passed successfully
✔ jpeg-recompress pre-build test passed successfully
⚠ The `/home/project/node_modules/jpegoptim-bin/vendor/jpegoptim` binary doesn't seem to work correctly
⚠ jpegoptim pre-build test failed
ℹ compiling from source
✖ Error: ./configure --prefix="/home/project/node_modules/jpegoptim-bin/vendor" --bindir="/home/project/node_modules/jpegoptim-bin/vendor" && make install
Command failed: ./configure --prefix="/home/project/node_modules/jpegoptim-bin/vendor" --bindir="/home/project/node_modules/jpegoptim-bin/vendor"
at ChildProcess.exithandler (child_process.js:211:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:885:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
✔ mozjpeg pre-build test passed successfully
✔ optipng pre-build test passed successfully
✔ pngquant pre-build test passed successfully
✔ zopflipng pre-build test passed successfully
/home/project
$ uname -a
Linux ubuntu-xenial 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ node -v && npm -v
v7.2.0
3.10.9
from gulp-image.
I'm having the same issue:
[08:44:37] Starting 'image'...
[08:44:37] Finished 'image' after 16 ms
events.js:160
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at exports._errnoException (util.js:1026:11)
at WriteWrap.afterWrite (net.js:799:14)
Node: 6.9.1
Npm: 3.10.8
In my gulpfile I have:
gulp.task('image', function () {
gulp.src('assets/*')
.pipe(image())
.pipe(gulp.dest('dist/assets'));
});
The error during the installation is:
⚠ The `/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/jpegoptim-bin/vendor/jpegoptim` binary doesn't seem to work correctly
⚠ jpegoptim pre-build test failed
ℹ compiling from source
✖ Error: ./configure --prefix="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/jpegoptim-bin/vendor" --bindir="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/jpegoptim-bin/vendor" && make install
Command failed: ./configure --prefix="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/jpegoptim-bin/vendor" --bindir="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/jpegoptim-bin/vendor"
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
> [email protected] postinstall /Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg
> node lib/install.js
⚠ The `/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg/vendor/cjpeg` binary doesn't seem to work correctly
⚠ mozjpeg pre-build test failed
ℹ compiling from source
✖ Error: autoreconf -fiv && ./configure --disable-shared --prefix="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg/vendor" --bindir="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg/vendor" --libdir="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg/vendor" && make --jobs=4 && make install --jobs=4
Command failed: ./configure --disable-shared --prefix="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg/vendor" --bindir="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg/vendor" --libdir="/Users/alex/h/steed/pabloescobarinfraganti.com/node_modules/mozjpeg/vendor"
./configure: line 13758: syntax error near unexpected token `libpng,'
./configure: line 13758: `PKG_CHECK_MODULES(libpng, libpng, HAVE_LIBPNG=1,'
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
from gulp-image.
Temp solution, disable those below.
mozjpeg: false
jpegoptim: false
from gulp-image.
any "final" solution?
from gulp-image.
I'd also like to see a solution to this if possible. Any ideas? JPG optimisation would be great to have.
from gulp-image.
Would you try re-installing jpegoptim-bin? #22 (comment)
from gulp-image.
Related Issues (20)
- error after updating dependencies HOT 1
- Publish new version and run npm release HOT 2
- Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:
- Wrong external dependencies for Ubuntu/Debian
- 6.3.1 doesn't work with the esm module loader HOT 2
- Don't work - Error [ERR_REQUIRE_ESM]: Must use import to load ES Module HOT 5
- Regression from version 4.1.0 to 4.2.0, install failing at mozjpeg HOT 7
- NPM 5.6.0 can't install gulp-image HOT 1
- Is it possible to have a node version? (without gulp) HOT 3
- Replace deprecated dependecy gulp-util HOT 1
- Can't change quality setting for mozjpeg HOT 2
- pngquant --speed does not do anything HOT 3
- Request to remove gulp-util HOT 2
- Getting a deprecation warning when installing HOT 2
- I don't have image type so how can I compressed?? when I compress with image type its working fine.
- jpeg HOT 1
- Npm install error HOT 1
- withMetadata HOT 4
- The output is different between window and mac HOT 5
- PNG HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-image.