lib/pty.js
function Socket(options) {
  if (!(this instanceof Socket)) {
    return new Socket(options);
  }
  var tty = process.binding('tty_wrap');
  var guessHandleType = tty.guessHandleType;
  tty.guessHandleType = function() {
    return 'PIPE';
  };
  net.Socket.call(this, options);
  tty.guessHandleType = guessHandleType;
}
function Socket(options) {
  if (!(this instanceof Socket)) {
    return new Socket(options);
  }
  var tty = process.binding('tty_wrap');
  var guessHandleType = tty.guessHandleType;
  tty.guessHandleType = function() {
    return 'PIPE';
  };
  net.Socket.call(this, options);
  tty.guessHandleType = guessHandleType;
}
function Socket ( options ) { if ( ! ( this instanceof Socket ) ) { return new Socket ( options ) ; } var tty = process . binding ( 'tty_wrap' ) ; var guessHandleType = tty . guessHandleType ; tty . guessHandleType = function ( ) { return 'PIPE' ; } ; net . Socket . call ( this , options ) ; tty . guessHandleType = guessHandleType ; }
Wrap net.Socket for a workaround
Wrap net . Socket for a workaround