Questions about node-windows, a utility designed to allow running Node.js as a Windows service.
Questions tagged [node-windows]
51 questions
8
votes
8 answers
Wiki.js not running. Database Connection Error
Windows Enterprise 2016 LTSB Version 1607. Installed Wiki.js with PostgreSQL. Has Node.js installed previously (v12.16.2).
Got to step 8 of wiki.js installation process using the Powershell:
node server
I receive this error:
PS C:\wiki> node…

Felicity
- 81
- 1
- 1
- 3
4
votes
2 answers
How to call function from Nodejs running as windows service
I have created windows service from nodeJs application using node-windows package. Below is my code.
Main.js
var Service = require('node-windows').Service;
// Create a new service object
var svc = new Service({
name:'SNMPCollector',
…

pratRockss
- 455
- 8
- 25
4
votes
1 answer
Windows Notification from node service from electron
I can send windows notification from electron using node-notifier
notifier.notify({
appName: "myapp",
title: 'My notification',
message: 'Hello, there!'
});
I can run service from electron using node-windows
from my main process
var…

Anwar Hossain
- 654
- 6
- 21
3
votes
1 answer
Issue with installing node application as a service using Inno Setup and node-windows script
The service installs but will not start, either straight away or after system reboot, when running the following script from Inno Setup:
#define ....
#define NODE "node-v12.16.2-x64.msi"
...
[Files]
...
[Run]
Filename: "{sys}\msiexec.exe";…

BitShift
- 977
- 2
- 9
- 28
3
votes
1 answer
NodeJS - Logging to Windows Event Log?
I am trying to write a Node app that, once deployed, will log to Windows Event Log.
I looked through available packages and was able to successfully use node-windows to write logs to the Windows Event Viewer when I ran the app using the command…

uabdul
- 31
- 1
- 2
3
votes
0 answers
How come node-windows service stops running?
We have a node-windows service that runs our API. Sometimes when I start it, it immediately dies for no apparent reason. I go to restart it and it stops as soon as it starts. No helpful error messages in event viewer. Usually un-installing and…

208_man
- 1,440
- 3
- 28
- 59
2
votes
0 answers
Service not found after install service node-windows
My install service script as below:
install_windows_service.js
require("dotenv").config();
var Service = require("node-windows").Service;
// Create a new service object
var svc = new Service({
name: "STUtility",
description: "The web app with…

Dang Thach Hai
- 347
- 3
- 10
2
votes
0 answers
How to install Windows-only NPM package on Ubuntu for development?
Context:
I am developing a node app for Windows 2016 server. The machine I develop on runs Ubuntu 18.04.
I would like to make use of the package node-windows, however when I try to install it, I get the following error:
$ npm i node-windows
npm ERR!…

Bastian Stein
- 2,147
- 1
- 13
- 28
2
votes
1 answer
Package Node.js app which runs as a service using node-windows
I am using pkg to bundle the node application which uses node-windows to run it as a service. But the executable doesn't seam to start the service. I am not getting any error as well. Do we need add any additional configurations to the package.json…

AbiSivam
- 419
- 1
- 6
- 17
2
votes
1 answer
node-windows permission Denied - and not requesting rights after compiling?
I am trying to install dynamically windows services from my electron app.
For that i am using the node module "node-windows".
This looks like this:
service = new Service({
name: 'Watcher',
description: 'Watcher',
script: 'Watcher.js',
…

Tobias
- 1,534
- 11
- 25
2
votes
1 answer
How to run Vue Application in background on windows
I have an Vue application created with vue-cli (vue create my_app).
It runs normally when I open the terminal, run the command npm run serve and access localhost:8080, but it stopped when I close the terminal.
How can I keep the program running when…

Canatto Filipe
- 569
- 7
- 15
2
votes
1 answer
Running a script with parameters with node-windows nodeJs package
The script i want to run as a service requires 'start' as parameter.
How do i setup the parameter with node-windows?
Here the setup js script from the project page:
var Service = require('node-windows').Service;
// Create a new service object
var…

MiguelSlv
- 14,067
- 15
- 102
- 169
2
votes
1 answer
node windows run child process.exe
I use this plugin to create a windows service: https://github.com/coreybutler/node-windows.
I want to start an external program with my service.
EDIT 1:
var cp = require("child_process");
cp.exec("C:\\Users\\test\\Desktop\\file.exe",…

Mr.Orange
- 426
- 1
- 4
- 8
1
vote
1 answer
How do to use node-windows with service account?
I am using node-windows to run my node app as a service. Because I intend to use node-expose-sspi I created a service account with powershell (I checked with Test-ADServiceAccount).
If I run this code
var Service =…

Fusscreme
- 152
- 9
1
vote
1 answer
Increasing max-old-space-size in node.js app running as Windows service
I'm relatively new to node.js and have built an app that is designed to be deployed as a standalone application without the need to install node.js or any of its dependencies.
I'm running into an issue where in specific, not easily reproducible…

kiss_my_patch
- 11
- 2