Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

What is worng #8

Closed
navap123 opened this Issue · 1 comment

2 participants

@navap123

Hello,
I am trying to use it without success.
I get that the program was installed as a service. I can see the service but no process of nssm.exe nor node.exe.

Probably something wrong with package.json.
Here is the package.json file:

    {
        "name": "MY_SERVER"
        , "version": "0.0.1"
         , "scripts": {
         "install-windows-service": "node_modules\\.bin\\winser -i",
         "uninstall-windows-service": "node_modules\\.bin\\winser -r"
     }
  }

I have a script server.js from the folder I'm running "winser", but still it doesn't start node.exe

Another question: How to change the file from default server.js?
Thanks for your help.
Nava.

@jfromaniello

Hi, server.js should be in the same folder than package.json. Winser will execute this when the service start:

npm start

in your package.json folder. You can execute this directly to test it.

If you want to change from server.js to something else you have to add an script to your package.json as follows:

  "name": "MY_SERVER"
  , "version": "0.0.1"
  , "scripts": {
    "start": "node blablabla.js"
    "install-windows-service": "node_modules\\.bin\\winser -i",
    "uninstall-windows-service": "node_modules\\.bin\\winser -r"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.