-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Can't launch node process from cygwin #6459
Comments
cygwin isn't officially supported |
That's caused by cygwin's terminal emulation, it's incompatible with node. Closing as WONTFIX. If you feel really strongly about it, you could try your hand at a libuv patch. |
Hangs in Powershell ISE. |
Works for me if I don't use rlwrap.
|
Note that you can still use node with cygwin, just not in the mintty terminal. For example you can start cygwin from the Windows command shell or from a third party terminal like Console, and then use node normally. |
@paulcw Good to know. Thanks. |
i can confirm, that i run node in cygwin in a console tab, as described here. |
This is not good enough unfortunately, as I need to ssh into my cygwin shell from a mac and need to be able to run node there. Unfortunately, all those terminal and console solutions won't help here. We need nodejs to please add support for Cygwin natively! |
@salqadri The problem running node on cygwin, at least the one I observed, is with the default terminal app. The solution above (run with a different terminal app) is simply a workaround of that problem. But if you're planning to run via a SSH as you describe, then you wouldn't even be running a cygwin terminal app, and you'd be working around the problem already. So if you tried to run node like that and it hasn't worked, it's probably a different problem, or a different manifestation of the problem than I've seen mentioned anywhere. Have you tried it yet? If so, how are you running sshd? What error messaes do you get? (btw, is there a better place for convos like this than a github bug entry?) |
Hi @paulcw, I'm attempting to run node |
I am still getting this via cygwin/SSH.
And yes, this will work in windows cmd command prompt. |
@jpastuszek Simply open command prompt or powershell and run cygwin from there.
|
simply invoke node as the following: $ node -i |
Cygwin isn't even in the list of supported programs .... so sad... |
I have occasionally found that creation of mintty.bat helps Or for the task bar's shortcut change a property from |
See: [1]: https://github.com/stdlib-js/stdlib/blob/9488627d2cfeb1544d500aa3dc2418053daa1195/appveyor.yml#L178 [2]: ember-cli/ember-cli#1812 (comment) [3]: nodejs/node-v0.x-archive#6459 (comment) [4]: https://github.com/JuliaLang/julia/blob/5f265f7fa03b6ead5aa0113266b2fc926ee9a034/appveyor.yml#L53
$ node net.js:157 this._handle.open(options.fd); ^ Error: EINVAL, invalid argument at new Socket (net.js:157:18) at process.stdin (node.js:660:19) at startup (node.js:145:16) at node.js:901:3
node --version 0.10.21
The text was updated successfully, but these errors were encountered: