m19c / gulp-run

Pipe to shell commands in gulp
ISC License
151 stars 25 forks source link

EPIPE Error on node v0.12 #29

Open kuddl opened 9 years ago

kuddl commented 9 years ago

Hi, there is an error, when I run this in node v0.12 or io.js 1.6.

it works, when I run it with node 0.10

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: write EPIPE
    at exports._errnoException (util.js:746:11)
    at WriteWrap.afterWrite (net.js:766:14)
tengyifei commented 9 years ago

+1. Also having this issue. My workaround was (if you want to ignore all outputs):

var runObj = run(<command>, { verbosity: 0 });
var oldTransform = runObj._transform;
// Hijack the original _transform function and swap out the stream
runObj._transform = function(_, enc, cb) {
  // have to manually call the task callback since we don't have the stream
  oldTransform('', enc, callback);    // callback belongs to gulp task
};
// Pipe into runObj
ghost commented 9 years ago

+1 Any word on this, it is a pretty major issue.

m19c commented 8 years ago
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: write EPIPE
    at exports._errnoException (util.js:746:11)
    at WriteWrap.afterWrite (net.js:766:14)

The same error occurs on travis-ci. To figure out whats going on, it is necessary to create a test case. This test case should isolate the problem. May one of u guys already have written such a test case?!