4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

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

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?