We're a place where coders share, stay up-to-date and grow their careers.
''' execFile("C:/Program Files/MongoDB/Server/3.2/bin/mongod.exe", ['--version'], (error, stdout, stderr) => { if (error) { throw error; } console.log(stdout); '''
This should kinda of fix that for windows env
'''
execFile("C:/Program Files/MongoDB/Server/3.2/bin/mongod.exe", ['--version'], (error, stdout, stderr) => {
if (error) {
throw error;
}
console.log(stdout);
'''
This should kinda of fix that for windows env