I installed Yarn on Win10 operate system, and when I put "yarn init", an error occurred:
error An unexpected error occurred: "Can't answer a question unless a user TTY".
I have no idea for what happened, and I searched in Baidu(U know Amazing China,,ԾㅂԾ,,), I can't find any helpful infos.
So being here for help——My node version is "7.5.0", it gave me a warning, maybe that cause error?
Help Wanted!
+1
node v8.9.3, yarn v1.9.4 (installed from .msi) This happens to me if I'm in a cygwin terminal, but not if I'm in a windows 10 cmd window. I've tried explicitly executing yarn.cmd (in ../Yarn/bin/) as mentioned in several other "no tty" issues, which didn't help. Once I did do "yarn init" in the cmd window, "yarn add .." worked ok on my cygwin prompt. May want to try those for workaround if y'all want.
Same Error. i use Win10 cmd instead
Most helpful comment
Help Wanted!