Nodejs process.stdin.resume() doesn't work in Cygwin
问题 Trying to make a CLI type program - waiting for user input. In Cygwin, the script just exits. Just this in the script process.stdin.resume() Seems to work on a Linux VM. Works on Windows Command line also. Im assuming 'terminal' stuff regarding Cygwin.. 回答1: The symptom is that Cygwin process.stdin.on('data', cb); and process.stdin.on('end', cb); doesn't get called. I found a workaround for it Versions > ver Microsoft Windows [Version 6.1.7601] $ uname -a CYGWIN_NT-6.1 localhost 1.7.28(0.271