Posted at

yarn initでエラーが出た場合の対処方法

More than 1 year has passed since last update.

yarn initをおこなうと以下のようなエラーが出た。

$ yarn init

yarn init v0.18.1
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:\\Users\\username\\...\\projectname\\yarn-error.log".
info Visit for documentation about this command.


$ yarn add yarn

$ node ./node_modules/yarn/bin/yarn.js init