Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
4
Help us understand the problem. What is going on with this article?
@buchiya4th

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

More than 3 years have 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 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
Help us understand the problem. What is going on with this article?
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
buchiya4th
空前絶後の超絶怒涛のフロントエンドエンジニア。 フロントエンドを愛しフロントエンドに愛された男。 HTML、CSS、JavaScriptすべてのフロントエンドの産みの親。 フロントエンド界に舞い降りたキングオブ人見知り。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
4
Help us understand the problem. What is going on with this article?