gulp-run icon indicating copy to clipboard operation
gulp-run copied to clipboard

EPIPE Error on node v0.12

Open kuddl opened this issue 9 years ago • 3 comments

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)

kuddl avatar May 08 '15 15:05 kuddl

+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

tengyifei avatar Jun 10 '15 22:06 tengyifei

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

ghost avatar Aug 20 '15 07:08 ghost

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?!

m19c avatar Feb 04 '16 08:02 m19c