GithubHelp home page GithubHelp logo

Error: write EPIPE about gulp-image HOT 15 CLOSED

1000ch avatar 1000ch commented on June 9, 2024 7
Error: write EPIPE

from gulp-image.

Comments (15)

bertalanimre avatar bertalanimre commented on June 9, 2024 4

Also waiting for an aswer. This is frustrating.

from gulp-image.

evayde avatar evayde commented on June 9, 2024 1

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.

tomhoad avatar tomhoad commented on June 9, 2024 1

For the record, on MacOS:

brew install libjpeg
npm install --global jpegoptim-bin

from gulp-image.

sathyalog avatar sathyalog commented on June 9, 2024

Even i am facing the same issue. Looking for some help.

from gulp-image.

tammyhart avatar tammyhart commented on June 9, 2024

also getting the same error unless I specify extensions in which case, it only processes .png

from gulp-image.

anuraag279 avatar anuraag279 commented on June 9, 2024

+1

from gulp-image.

 avatar commented on June 9, 2024

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.

1000ch avatar 1000ch commented on June 9, 2024

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.

baacke avatar baacke commented on June 9, 2024

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.

in-in avatar in-in commented on June 9, 2024

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.

CoffiDev avatar CoffiDev commented on June 9, 2024

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.

dkouvdis avatar dkouvdis commented on June 9, 2024

Temp solution, disable those below.
mozjpeg: false
jpegoptim: false

from gulp-image.

kamilczujowski avatar kamilczujowski commented on June 9, 2024

any "final" solution?

from gulp-image.

michaelpumo avatar michaelpumo commented on June 9, 2024

I'd also like to see a solution to this if possible. Any ideas? JPG optimisation would be great to have.

from gulp-image.

1000ch avatar 1000ch commented on June 9, 2024

Would you try re-installing jpegoptim-bin? #22 (comment)

from gulp-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.