Closed pols63 closed 1 year ago
I realize this is a late reply, but there are two things I see. First, there is an access denied response, which means the user account running the service doesn't have permission to do what your script is trying to do. That's the first thing to change.
Second, do not use __dirname
, as it changes based on the current working directory. See https://github.com/coreybutler/node-windows/wiki for more details.
Hi:
When I stop my service, the "node.exe" is still running.
This is my installer file:
installer.js
And this is my script:
service.js
As you could see, I execute "npm start", this is the command to execute:
npx ts-node -r tsconfig-paths/register --project tsconfig.json .
In the wrapper.log, I get this message:
After the service is stopped, the node.exe is still running, in this case, my web server is still listening.
My node version is 19.6.0
I hope your help. Thanks.