4
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

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

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 https://yarnpkg.com/en/docs/cli/init for documentation about this command.

以下で解決した。

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

参考

https://github.com/yarnpkg/yarn/issues/743

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
4
Help us understand the problem. What are the problem?