title: Making a node.js service using NSSM
body: <p>I want to create a nodejs service, so that the node server starts as my computer starts, and i do not have to keep the command prompt open all the time. I m tryng to achieve this by using NSSM.</p>
  
  <p>Here is the command to create the service:</p>
  
  <pre><code>nssm.exe install jewel-server C:\Program Files\nodejs\node.exe D:\jewel\server.js
  </code></pre>
  
  <p>Run service:</p>
  
  <pre><code>net start jewel-server
  </code></pre>
  
  <p>But this doesnt work and give this error:</p>
  
  <pre><code>The jewel-server service is starting.
  The jewel-server service could not be started.
  
  A service specific error occured: 3.
  </code></pre>
  
  <p>I checked error code 3 means the path is not correct but the is path correct.
  Can you tell what i am doing wrong, or is there any other open source &amp; more reliable alternative to NSSM</p>
  
  <p>Version:</p>
  
  <pre><code>NSSM
  version: 2.24
  Windows-7 64bit
  </code></pre>