coreybutler / coreybutler/node-windows

Install Service not working on Windows 8.1 and .NET 4.5

Open
#47 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
368
PR merge metrics
No merged PRs in 30d

Description

I tried following script to run another node package as a service. Opened my nodejs commandprompt as administrator so I have the elevated rights. Nothing is happening. No Service running, no console output, no nothing. Let me know how I can get you more information.

``` js
var Service = require('node-windows').Service;

// Create a new service object
var svc = new Service({
name: 'Subway IRC',
description: 'IRC client in the browser, running on port 3000',
script: 'E:\\subway\\subway'
});

// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install', function() {
console.log('Service "%s" installed', svc.name);
svc.start();
console.log('Service "%s" started', svc.name);
});

svc.install();
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.