git is installed on windows and works from any directory (it is in System path)
var child_process = require('child_process');
child_process.exec('git --version', function(err, stdout, stderr) {
// stdout is correct - git version 1.7.11.msysgit.1
// but err is not null
// err is [Error: Command failed: ] killed: false, code: 1, signal: null }
}
What can cause this?
git \version
is the proper syntax?{env:{PATH:"C:\path to\node"}}
as the options argument toprocess.exec()
as described in docs. other than that I have no experience with Windows environment variables, thus no further ideas :/stdout = git version 1.8.3.msysgit.0