yarn icon indicating copy to clipboard operation
yarn copied to clipboard

yarn init freeze

Open hudsonof opened this issue 9 years ago • 12 comments

I am using Windows 10 and PowerShell as console

I installed yarn normally by the installer downloaded from the official website When I do a yarn --version it returns me the normal version But when I do a yarn init I type the name of the project and press Enter, then the version line appears but does not enter anything because the console is frozen.

hudsonof avatar Jun 09 '17 03:06 hudsonof

Could you please specify:

  • Version of Yarn
  • Version of NodeJS

Thanks!

rally25rs avatar Jun 09 '17 12:06 rally25rs

Yarn 0.24.6 NodeJS 8.1.0

hudsonof avatar Jun 09 '17 13:06 hudsonof

Same thing happening to me on macOS.

Yarn installed with brew, using --ignore-dependencies option. Yarn 0.24.6 NodeJs 8.1.0, using nvm.

hakanderyal avatar Jun 09 '17 15:06 hakanderyal

Just tried with Node 8.0.0, using nvm, everything works. There seems to be a problem with node 8.1.0.

hakanderyal avatar Jun 09 '17 15:06 hakanderyal

Same problem here on Fedora 25. Yarn v0.24.5 NodeJs v8.1.0 (using nvm)

Dbuggerx avatar Jun 09 '17 22:06 Dbuggerx

Same on Debian stretch (testing) Yarn 0.24.6 Node 8.1.0

Lytol avatar Jun 10 '17 06:06 Lytol

Same on Windows 10 Yarn 0.24.6 (msi installer) Node 8.1.0 (msi installer)

thenoen avatar Jun 11 '17 12:06 thenoen

Seems to be a Node v8.1.0 bug, triggered via read and readline: https://github.com/nodejs/node/issues/13557 .

To quote: "it'll be fixed in the next v8.x release, scheduled for next Tuesday" (June 20th).

ghost avatar Jun 15 '17 07:06 ghost

Ok, closing as it should be fixed by latest Node.

bestander avatar Jun 20 '17 22:06 bestander

Yarn still not working properly with Powershell as console. It freezes at "Question (version 1.0.0):" I using Windows 7 Prof. Yarn 0.24.6 Node 8.1.0

Any body has a solution yet? Thanks.

cosola avatar Sep 12 '17 17:09 cosola

https://github.com/yarnpkg/yarn/issues/3613#issuecomment-308656174 actually implies the solution which is upgrading Node. You mentioned you are using 8.1 and the latest is 8.5 so try upgrading your Node :)

BYK avatar Sep 12 '17 21:09 BYK

Thanks. Will try today. Actually, both yarn init and npm init freeze at the same level, regardless of the shell use - Powershell, CMD, Git-shell, Git-CMD. In several occasions I got a long message that others have received : yarn init ...."can't answer a question unless a user TTY" info ....

On Sep 12, 2017, at 5:15 PM, Burak Yiğit Kaya [email protected] wrote:

#3613 (comment) actually implies the solution which is upgrading Node. You mentioned you are using 8.1 and the latest is 8.5 so try upgrading your Node :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

cosola avatar Sep 13 '17 10:09 cosola