46 questions
1
vote
0
answers
62
views
How to install @nodert-win10-rs4/windows.devices.geolocation in Node 18 / Electron 29 with Cordova-Electron on Windows?
I’m working on a Cordova-Electron project where I need to access the Windows native geolocation API (WinRT) instead of using Google’s geolocation provider.
Environment details:
Node.js: 18.20.x
...
0
votes
1
answer
158
views
How can I run node-windows module
I have node js project and ı want the convert windows service and
I want it to start automatically.my code turns into windows service, but the requests I make do not come without running the program.
...
0
votes
1
answer
948
views
Compatibility problem on Windows Server 2019
For two years now, I created a windows service for my node project on a windows server 2008 using node-windows module. Recently we upgrade our version to a Windows Server 2019. I then tried to ...
0
votes
1
answer
2k
views
Start nestjs project as a Windows service
We used to start Angular and NestJS (based on node.js) projects using Docker containers. This solution was discontinued for various reasons, so we are looking for a way to start these projects at the ...
1
vote
1
answer
1k
views
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
...
0
votes
1
answer
3k
views
No native build was found for platform=win 32
I am getting the following error in the auto-start(Run entry in Regedit to Auto-Start) App after restarting the app or stop auto-start and started manually then its working file.
Error
No native build ...
0
votes
1
answer
3k
views
How to pass the dotenv config path through a Windows service created with node-windows
Windows Server 2008 R2 Enterprise
Node version 12.13.1
node-windows version 1.0.0-beta.5
When I call my node application, instead of using require('dotenv') in code to load the environment variables (...
0
votes
1
answer
339
views
Trying to run a node server as windows service on azure vm
I have build a node server and have been testing it periodically but running from powershell. Right now I am trying to use node-windows package to run the node server as a service, so that the server ...
12
votes
8
answers
24k
views
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 ...
2
votes
0
answers
390
views
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 = ...
1
vote
1
answer
1k
views
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 ...
1
vote
0
answers
239
views
Node JS application service stopped running on system restart on Windows 10.How I can solve this issue?
I am using windows service for running my nodejs application on system restart. But my application is not running, whenever I checked in services it's showing blank in status bar and I have already ...
0
votes
1
answer
2k
views
Wiki.js not running as a Windows Service
Windows Server 2019 Standard (1809)
Installed Wiki.js with PostgreSQL.
Works great when starting the server manually
node server
Installed node-windows and registered to run Wiki.js as a service. The ...
1
vote
1
answer
418
views
Service not getting installed using node-windows
I tried using node-windows to create a service > "daemon" folder was getting created but service was not getting installed. Following is the code :
var Service = require('node-windows')....
3
votes
1
answer
1k
views
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"
......
2
votes
0
answers
400
views
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 ...
0
votes
1
answer
158
views
node-windows impersonate password issue
I'm running a file watcher app as a windows service (W10) with the following code used to install the service:
var Service = require('node-windows').Service;
const config = require('./SHR_modules/...
1
vote
1
answer
378
views
Dependencies for node-windows services
I'm wondering how to define dependencies (other non node-windows nor node.js windows services).
In the code of winsw (HERE) I've found out it should be possible.
For me it seems to be a "issue" in ...
4
votes
2
answers
1k
views
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 = ...
0
votes
0
answers
1k
views
TypeError: null is not an object (evaluating 'document.querySelector("input[id$='auth_login_submit']").click')
Good Morning,
i have a project on windows 10.
The problem is that if I run it through "npm start" from git bash, I have no problems and it works perfectly.
If it starts from the windows service it ...
0
votes
1
answer
2k
views
NestJS(Node) Project Giving Error on creating new project via NEST CLI
I was following a tutorial to learn NEST JS and NEST CLI is installed successfully, but on creating a project via command nest new project-name it creates a directory with name undefined and then ask ...
2
votes
1
answer
702
views
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 ...
3
votes
1
answer
872
views
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',
...
0
votes
1
answer
413
views
Windows Node Service not listening on port
I am trying to write a node service that listens on a port and writes to the Event log, but I can't connect when I launch a browser at http://localhost:41414/?x=y Im not getting event records from the ...
2
votes
1
answer
4k
views
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 ...
1
vote
1
answer
2k
views
cannot start service from the command line or a debugger. a windows service must first be installed Nodejs
i am creating a windows service that adds some data randomly to a database , so i used node-windows to implement it and when i run the file it creates an executable file and when i run that file i get ...
1
vote
1
answer
97
views
Cannot find property 'svc' when using promisify
I am trying to write an application that it will run as a Windows Service. For this, I have used the node-windows package.
The application will print a simple message every second when started (at ...
3
votes
1
answer
6k
views
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 ...
1
vote
1
answer
1k
views
Enable windows service to use command line
I have written a simple service which is now active on my windows services. My problem is that I cannot access the cmd through the windows services. I am using nodejs express for my service, node-cmd ...
2
votes
1
answer
2k
views
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-...
0
votes
0
answers
39
views
confused about writing script for helloworld.js using node-windows in nodejs
I am using node-windows in nodejs to run my nodejs script as a windows service.
now let's suppose that my helloworld.js code is a simple command which creates a folder on desktop. how do I execute ...
3
votes
0
answers
355
views
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 ...
4
votes
1
answer
2k
views
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 ...
1
vote
1
answer
7k
views
Created a windows service to run my node app, but service stops running a few seconds after starting
There's already a thread on this subject (here), but it doesn't answer my situation (most of the answers make suggestions for alternatives to node-windows instead of addressing why the service it ...
1
vote
1
answer
3k
views
Restarting a service in node-windows
Using the node-windows package, I am installing a node server locally as a service. Having then an interface to modify the .env file, when I actually modify the configurations of the .env and save the ...
0
votes
0
answers
2k
views
Nodejs : Error: %1 is not a valid Win32 application
As i googled, there is don't have answer for below questions, Actually my code was working fine in linux machine. But i got error in windows,
Error: %1 is not a valid Win32 application.
D:\xampp\...
1
vote
1
answer
119
views
Electron Atom - Module "Node-Windows" not found after compiling
After hours of searching and still not finding a usefull answer, I hope somebody could help me with following issue that I'm facing:
I inclued to my Electron APP a module called "node-windows" so I ...
0
votes
0
answers
615
views
Erroneous activity in .out log file
I've configured a node runtime as a native service using node-windows on Windows Server 2012. In the .out file inside the daemon folder, I've noticed activity that does not originate from my process (...
0
votes
1
answer
163
views
how we can write node js server logs into a file if using node-windows
I am running by node js server as a windows service using a node module node-windows
I am able to start my server as a service but what if I want to see logs which my node server dumps in frequent ...
2
votes
1
answer
6k
views
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("...
1
vote
1
answer
582
views
Node-Windows service starts multiple instances
I'm running some file management tasks through a node script. The node-windows package is included to allow me to run this script as a windows service. I encountered a serious error this morning when ...
0
votes
1
answer
3k
views
multer file-upload doesn't work with node-windows
I am trying to upload picture files, using multer.
This is is my code:
router.post('/', function (req, res) {
upload(req, res, function (err) {
if (err) {
// An error occurred when ...
0
votes
0
answers
160
views
How to combine module 'ffi', 'node-windows' on websocket server in NodeJS
I want to make a websocket server. It can run automatically as a windows service (I use module 'node-windows') and load a file dll (I use module 'ffi').
Here is code in file server.js
var http = ...
0
votes
1
answer
888
views
node-windows absolute paths
When I run my node.js application as Windows Service using node-windows I have the problem. My appliction can't read files with absolute paths like
var filePath = "C:\\someFolder\\someFile.json";
...
0
votes
1
answer
655
views
Sending command-line parameters when using node-windows to create a service
I've built some custom middleware on Node.js for a client which runs great in user space, but I want to make it a service.
I've accomplished this using node-windows, which works great, but the client ...
1
vote
1
answer
711
views
Hubot windows service
I would like to wrap my Hubot in a windows service to deploy it.
I am using node-windows to do this but I'm having some trouble trying to get it to run a coffee-script file (which is what hubot uses)....