【发布时间】:2017-12-20 03:22:22
【问题描述】:
此问题可能是特定于 Windows 的。我没有在 Linux 或 Mac 上测试过。
我用:
- Windows 7 64 位
- Node.js 8.1.3
- Git for Windows 2.8.1,包括 GNU bash,版本 4.3.42(5)-release
node my-cli.js > foo.txt:错误output is not a tty
node my-cli.js < foo.txt:错误input is not a tty。
【问题讨论】:
标签: node.js stdout stdin git-bash mingw-w64