learnyounode
learnyounode copied to clipboard
Bug: learnyounode doesn't work with new Node in Windows 8
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
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.
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.
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
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.
Thanks, it's working in ConEmu but only around 60% of the time. There are still times when I can't move the selection.
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"
Hi all. Thank you for leaving this issue opened. I have just installed ConEmu and it started to work successfully. Cheers!
Hi all, Problem solved by running cmd as admin.
https://github.com/nodeschool/discussions/issues/1403#issuecomment-231124477 may be of some use as alternative solution.
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.)
Hey @NathanHawks what version of node and npm are you using?
And can you paste the error log here?
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 .
Ok. Thanks, I'll look into it :)
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
- [email protected] added 736 packages in 21.95s