【发布时间】:2019-05-22 07:54:55
【问题描述】:
我想开始使用 yarn。
我在 Windows 上使用 cygwin,我启动并输入:
$yarn init
我得到:
$ yarn init
yarn init v1.12.3
error An unexpected error occurred: "Can't answer a question unless a user TTY".
info If you think this is a bug, please open a bug report with the information provided in "C:\\home\\code\\repos\\pwa\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command.
什么意思:“除非用户 TTY,否则无法回答问题”?
我是否被阻止使用 cygwin 提供的带有 yarn 的 bash shell?我找不到任何文件告诉我应该下载和使用什么终端/shell。
我需要使用带有脚本、别名、命令行补全的 bash shell 来提高工作效率,并且可以访问用于编写脚本的各种 gnu 命令,因此不能选择 DOS 命令提示符或 powershell。
【问题讨论】:
-
如果您使用的是较新版本的 Windows 10,您可以使用builtin Unix kernel。