A basic node.js Implementation of a websocket server runs fine as when started via the command line or the scheduled task manager.
However, after being installed as a service using nssm, it refuses to launch with the following exception:
windows could not start the service ... on local computer. The service did not return an error. This could be an internal Windows error or an internal service error.
The software does use neither mapped network drives nor does it access the registry, both of which where implied as possibly reasons for this behavior in this SO question. I've traced the problem to be rooted within the websocket server component, commenting it out enables the running of the service just fine.
Additionally, the process works fine when being used in Windows 7 and Windows 10 environments.
When I'm mistaken in thinking this questions should be addressed to the serverfault community, feel free to move it to superuser.
Update:
Here's the referenced code element:
Instantiation:
let WebSocket = require('ws');
this.server = new WebSocket.Server({
port: this.port
});
This is a call to js library available on https://github.com/websockets/ws