heapwolf / prompt-sync

a synchronous prompt for node.js
MIT License
211 stars 42 forks source link

process.stdin.setRawMode is not a function #26

Closed Gibolt closed 5 years ago

Gibolt commented 7 years ago

events.js:160 throw er; // Unhandled 'error' event ^

TypeError: process.stdin.setRawMode is not a function at prompt (C:\Git\LiveTranslate\node_modules\prompt-sync\index.js:66:34)

This can be fixed by ignoring setRawMode for non-TTY consoles

cedricVu commented 7 years ago

How did you ignore setRawMode for non-TTY consoles on ubuntu..Please let me know.

heapwolf commented 6 years ago

👍

PR welcome :)

FMGordillo commented 6 years ago

Sorry, how did you solve this issue? I am using PowerShell and CMD, and both gave that issue.

boltex commented 6 years ago

I get this error while using on windows in git-bash