Closed mfechner closed 6 years ago
@mfechner This issue is actually with node-git not supporting the --harmony flag you need to disable that and change your working directory to where the app.js file lives. This solved the issue on my system and i was able to get it to load properly.
The below snippet worked for me and should work for you as well. I'm going to mark this as closed.
var svc = new Service({
name: 'nodegitWindowsService',
description: 'Show nodegit does not work with node-windows.',
script: path.join(__dirname, 'app.js'),
workingdirectory:path.join(__dirname, 'app.js'),
nodeOptions:[]
});
@jdziat thanks a lot this fixed it.
Dear all,
to be sure were to address this bug I would like to ask if you can quickly look over the code if it is correct. I stripped it down to a minimum example to show this bug. I described everything in the README.md to reproduce it, you can find everything here: https://gitlab.fechner.net/mfechner/nodegit_node-windows
Could you please have a quick look into installWindowsService.js if this code is correct? https://gitlab.fechner.net/mfechner/nodegit_node-windows/blob/master/installWindowsService.js
I think it is a bug with nodegit, but I would like to be sure, before I create a bug report there. The error message I see in daemon\nodegitwindowssservice.err.log:
Thanks a lot.