Skip to content
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

ENOENT neko error on windows #68

Open
nulld opened this issue Nov 21, 2020 · 1 comment
Open

ENOENT neko error on windows #68

nulld opened this issue Nov 21, 2020 · 1 comment

Comments

@nulld
Copy link

nulld commented Nov 21, 2020

This error occures when trying to exec haxelib run nme for e.g. It tries to execute run.n neko script and fails.
Same thing with main : Foo.hx in haxelib.json but looks like ENOENT haxe.

After some investigation found that nodejs spawn ignores PATHEXT on windows.
nodejs/node-v0.x-archive#2318

Changing neko to neko.cmd there https://github.com/lix-pm/haxeshim/blob/master/src/haxeshim/HaxelibCli.hx#L89 fixes this issue.

There are wrapperlike solutions via it can be fixed crossplatform. How about using something like this one, instead spawn?
https://www.npmjs.com/package/cross-spawn

@kevinresol
Copy link
Member

kevinresol commented Nov 22, 2020

I think it is fine to add dependencies as we are already using an augmented version of fs: https://github.com/lix-pm/lix.client/blob/d026272935ac1d26d72d3b80f0f0e14222b445a5/package.json#L22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants