gr
gr copied to clipboard
run command on Cygwin throws "ENOENT error executing the command"
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)
@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 !
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'),
Thanks a million, I applied the fix and made gr work properly on my box :)