-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node REPL does not work in a cygwin shell #10238
Comments
You have seen #384?
You could provide some more info, what you did, what happened, what you expected. /cc @nodejs/platform-windows |
@Akpotohwo Could you try |
@sam-github I think this is an error with running the node repl in Cygwin, which I think we do try to support |
@Fishrock123 The fix you suggested, i.e running "node --interactive" works as shown below. It just seems to behave weirdly when it comes across a syntax error. All is shown below: |
@Akpotohwo This is because of the way Cygwin emulates the Windows console. Can you try to run |
@Akpotohwo have you tried @joaocgreis's suggestion? Or can this be closed? |
@TimothyGu @joaocgreis I tried it, but winpty couldn't be found. I'm trying to build winpty now and see if that makes a difference |
@Akpotohwo - did you build winpty and did that make a difference? |
I'm confused if the |
I think it's a necessary evil on cygwin, but @nodejs/platform-windows would know more than me. |
As far as I know it is necessary to use |
OK, in that case, I'm going to close this. If anyone feels that's incorrect, feel free to re-open (if GitHub lets you) or leave a comment. |
has any fix been released, repl breaks on syntax error in cygwin |
As I understand it, there's no fix to release. The solution is to run |
Another possible solution is to run Cygwin inside of command prompt. This works for me although is a rather weird solution that requires no additional software. |
Versions: 6.2.2, 6.9.1, 4.4.7, 0.12.17 & 0.10.47
I tried running the Node REPL with those versions in a cygwin shell and it did not work.
It's not an installation problem, the Node REPL does not start in a cygwin shell.
If you run
node
in the shell, it hangs, and you never get to the>
prompt. You have to manually stop the process.I have attached a screenshot below:
The text was updated successfully, but these errors were encountered: