coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.78k stars 357 forks source link

Script doesn't start #252

Closed lekhmanrus closed 4 years ago

lekhmanrus commented 4 years ago

The issue I'm facing with, script is not starting at all. I've even tried example from this repo. I've tried to run it with and without Administrator rights.

Windows Events Log: image Child process [22276 - C:\Program Files\nodejs\node.exe --harmony C:\github\node-windows\lib\wrapper.js --file C:\github\node-windows\example\helloworld.js --scriptoptions= --log "Hello World wrapper" --grow 0.25 --wait 1 --maxrestarts 3 --abortonerror n --stopparentfirst undefined] finished with -1073741502

node -v
v13.9.0
coreybutler commented 4 years ago

Have you checked https://github.com/coreybutler/node-windows/wiki#my-script-installs-but-wont-start-with-no-error?

Also, I wonder how your install code looks, mostly because of this: --stopparentfirst undefined.

lekhmanrus commented 4 years ago

Hi @coreybutler ,

Yes, I've checked Wiki.

Steps to reproduce:

  1. git clone https://github.com/coreybutler/node-windows.git
  2. cd node-windows && npm i
  3. Change path at example/install.js image
  4. node .\example\install.js
  5. I have that warning at Windows Event Log and it seems like helloworld.js is not triggering at all.
lekhmanrus commented 4 years ago

@coreybutler, I'm sorry. I've restarted my machine and tried it again - it works now. I have no idea what was the issue. Sorry for wasting your time.