Node error: stdout is not a tty [Fixed]

When you try to pipe output to a file in Windows / msysgit or git bash, you may get this error:

$ node cmd.js >
stdout is not a tty

Rather than writing to the file via shell, do this:

var writable = fs.createWriteStream('', {flags:'w'});
writable.write('mkdir -p ' + path + '\n');
  'curl -o ' + path + + '.txt "' + entry.url + '"\n'