the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
By Denise Hilll at Jun 30 2020