learnyounode icon indicating copy to clipboard operation
learnyounode copied to clipboard

Bug: learnyounode doesn't work with new Node in Windows 8

Open Bondifrench opened this issue 9 years ago • 14 comments

Hi, After installing the new version of Node v4.0.0 on a Windows 8.1 P.C., I installed learnyounode as per instructions. When launching the application in the Node.Js command prompt , ie with simply learnyounode, it shows the menu but freezes the screen, I can't use keyboard keys to move up and down the menu. However when doing an exercise, learnyounode verify <file name> did work.

Instead of using the NodeJs windows command prompt I tried to use git bash for windows and there learnyounode doesn't even launch the workshop, and prints Please start this in a tty-compatible terminal program. I checked both with the NodeJs command prompt and in git bash process.stdout.isTTY, using the Node REPL and in both they return true. Is there a bug due to the new version of Node? Thx

Bondifrench avatar Sep 11 '15 06:09 Bondifrench

I can confirm this bug. I use Windows 8.1. The problem persists with Node 4.2.0 and Node 4.1.1. This bugs looks the same with another tutorial such git-it. It is really annoying.

Edit: According with this issue https://github.com/workshopper/learnyounode/issues/344 the problem is solved using ConEmu, but it should be just a workaround.

teritriano avatar Oct 13 '15 00:10 teritriano

It's happening to me as well. I'm in Windows 10 running Node v.4.2.1 and in both cmd and PS I can't select the next exercises. It doesn't seem to happen all the time as I was able to get to exercise 2 earlier. Now I can't select the next exercises again.

charlesverdad avatar Oct 27 '15 18:10 charlesverdad

I am also facing the same issue. Didn't able to select node exercises except "Hello World". System Config: Windows 8.1 Node v4.1.0 Git Version 2.6.2.windows.1

farjad-hasan avatar Oct 28 '15 07:10 farjad-hasan

Hi all, I actually managed to make it work when installing ConEmu, see this other issue which lead me to the solution. ConEmu is quite useful actually, see here for use. I would suggest to leave this issue open, for others to see the work-around.

Bondifrench avatar Oct 28 '15 07:10 Bondifrench

Thanks, it's working in ConEmu but only around 60% of the time. There are still times when I can't move the selection.

charlesverdad avatar Oct 28 '15 10:10 charlesverdad

On ConEmu if you cannot move the selection press enter, then you can move

Edit: By the way, I have the same problem with git bash "Please start this in a tty-compatible terminal program"

teritriano avatar Oct 28 '15 10:10 teritriano

Hi all. Thank you for leaving this issue opened. I have just installed ConEmu and it started to work successfully. Cheers!

o-andres-u avatar Nov 03 '15 13:11 o-andres-u

Hi all, Problem solved by running cmd as admin.

woleizihan avatar Dec 07 '15 04:12 woleizihan

https://github.com/nodeschool/discussions/issues/1403#issuecomment-231124477 may be of some use as alternative solution.

tedmx avatar Jul 07 '16 15:07 tedmx

3 years later and this is still happening to Windows 8.1 users on Cygwin's mintty

I'm not willing to run it as admin.

(Edited for tone.)

NathanHawks avatar Oct 25 '18 14:10 NathanHawks

Hey @NathanHawks what version of node and npm are you using?

And can you paste the error log here?

AnshulMalik avatar Oct 25 '18 15:10 AnshulMalik

npm 5.5.1 node 8.9.3

The output is below including the shell command. What you are seeing is the error, and then it seems to spit out a plaintext version of the main menu, and then exit.

$ /cygdrive/c/Users/xxx/AppData/Roaming/npm/learnyounode

Please start this in a tty-compatible terminal program.

─────────────────────────────────────────────────────────────────────────────

LEARN YOU THE NODE.JS FOR MUCH WIN!

───────────────────────────────────────────────────────────────────────────── learnyounode select 0: HELLO WORLD

learnyounode select 1: BABY STEPS

learnyounode select 2: MY FIRST I/O!

learnyounode select 3: MY FIRST ASYNC I/O!

learnyounode select 4: FILTERED LS

learnyounode select 5: MAKE IT MODULAR

learnyounode select 6: HTTP CLIENT

learnyounode select 7: HTTP COLLECT

learnyounode select 8: JUGGLING ASYNC

learnyounode select 9: TIME SERVER

learnyounode select 10: HTTP FILE SERVER

learnyounode select 11: HTTP UPPERCASERER

learnyounode select 12: HTTP JSON API SERVER

───────────────────────────────────────────────────────────────────────────── learnyounode help: HELP

learnyounode language: CHOOSE LANGUAGE

learnyounode credits: CREDITS

learnyounode update: CHECK FOR UPDATE

─────────────────────────────────────────────────────────────────────────────

On Thu, Oct 25, 2018 at 8:39 AM Anshul [email protected] wrote:

Hey @NathanHawks https://github.com/NathanHawks what version of node and npm are you using?

And can you paste the error log here?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/workshopper/learnyounode/issues/355#issuecomment-433100285, or mute the thread https://github.com/notifications/unsubscribe-auth/ABz_MNDjT6SrU9extKhih-Js7NUA2r-aks5uodsugaJpZM4F7hk0 .

NathanHawks avatar Oct 25 '18 16:10 NathanHawks

Ok. Thanks, I'll look into it :)

AnshulMalik avatar Oct 25 '18 16:10 AnshulMalik

Further, these messages appear when installing learnyounode:

$ npm install learnyounode -g npm WARN deprecated [email protected]: no longer maintained npm WARN deprecated [email protected]: no longer maintained C:\Users\xxx\AppData\Roaming\npm\learnyounode -> C:\Users\xxx\AppData\Roaming\npm\node_modules\learnyounode\bin\learnyounode

NathanHawks avatar Oct 25 '18 16:10 NathanHawks