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

run command on Cygwin throws "ENOENT error executing the command" #78

Open
garyhodgson opened this issue Oct 26, 2017 · 3 comments
Open

Comments

@garyhodgson
Copy link

I was getting the ENOENT error when trying to run commands (e.g. gr @tag -- mvn install) but fixed it by replacing the "child_process" module in lib/run.js with the "cross-spawn" (https://www.npmjs.com/package/cross-spawn)

(Env is Cygwin on Win 10, node v8.7.0)

@sansp00
Copy link

sansp00 commented Jun 19, 2019

@garyhodgson Would it be possible to issue a pull request with your fix ? I am facing the same problem and would like to use your fix. Thanks !

@garyhodgson
Copy link
Author

I had hacked the node js directory directly. Add cross-spawn to the dependencies in package.json "cross-spawn": "^5.1.0",

replace line 1 of https://github.com/mixu/gr/blob/master/lib/run.js#L1 with var spawn = require('cross-spawn'),

@sansp00
Copy link

sansp00 commented Jun 22, 2019

Thanks a million, I applied the fix and made gr work properly on my box :)

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