stdout is not a tty. Using bash for node + tape + tap-spec

前端 未结 4 816
梦毁少年i
梦毁少年i 2021-02-09 01:55

Was looking at a tape + tap video and tried to get it to work.
OS: Windows 7 Git Bash Shell

node main.js | ./node_modules/.bin/tap-spec

st

4条回答
  •  攒了一身酷
    2021-02-09 02:15

    Just to add my case, I was facing similar issue. Neither solution of using winpty did help, thus I used different hint on using node.exe instead of node when running a script (from Git bash in my case).

    not working:

    node myscript.js < some-input.txt > some-output.txt
    

    working:

    node.exe myscript.js < some-input.txt > some-output.txt
    

提交回复
热议问题