<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[win-install reports error of no &quot;start&quot; or &quot;main&quot; script in package.json]]></title><description><![CDATA[<p>Hello, I'm trying to install jsreports as a service.  I get this from the console</p>
<pre><code class="language-terminal">jsreport win-install
Platform is win32
To install app as windows service you need to have a &quot;start&quot; script or a &quot;main&quot; field in package.json file
</code></pre>
<p>So then I tried to remedy it by adding the following to my package.json</p>
<pre><code class="language-json">  &quot;scripts&quot;: {
    &quot;start&quot;: &quot;jsreport start&quot;
   }
</code></pre>
<p>But that doesn't work either because the event view reports the following from nssm:</p>
<pre><code class="language-terminal">Failed to start service jsreport-server.  Program jsreport couldn't be launched. CreateProcess() failed: The system cannot find the file specified.
</code></pre>
<p>JS Report CLI version:</p>
<pre><code class="language-terminal">jsreport --version
cli version: 2.0.7
</code></pre>
<p>Can someone help me on what should be in my package.json to get this working correctly?</p>
<p>Thanks,<br />
Mike</p>
]]></description><link>https://forum.jsreport.net/topic/1120/win-install-reports-error-of-no-start-or-main-script-in-package-json</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 12:17:55 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1120.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jun 2019 16:43:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to win-install reports error of no &quot;start&quot; or &quot;main&quot; script in package.json on Invalid Date]]></title><description><![CDATA[<p>Hello, I'm trying to install jsreports as a service.  I get this from the console</p>
<pre><code class="language-terminal">jsreport win-install
Platform is win32
To install app as windows service you need to have a &quot;start&quot; script or a &quot;main&quot; field in package.json file
</code></pre>
<p>So then I tried to remedy it by adding the following to my package.json</p>
<pre><code class="language-json">  &quot;scripts&quot;: {
    &quot;start&quot;: &quot;jsreport start&quot;
   }
</code></pre>
<p>But that doesn't work either because the event view reports the following from nssm:</p>
<pre><code class="language-terminal">Failed to start service jsreport-server.  Program jsreport couldn't be launched. CreateProcess() failed: The system cannot find the file specified.
</code></pre>
<p>JS Report CLI version:</p>
<pre><code class="language-terminal">jsreport --version
cli version: 2.0.7
</code></pre>
<p>Can someone help me on what should be in my package.json to get this working correctly?</p>
<p>Thanks,<br />
Mike</p>
]]></description><link>https://forum.jsreport.net/post/5244</link><guid isPermaLink="true">https://forum.jsreport.net/post/5244</guid><dc:creator><![CDATA[MKuenzi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to win-install reports error of no &quot;start&quot; or &quot;main&quot; script in package.json on Invalid Date]]></title><description><![CDATA[<p>i'm not really sure what files you have in your project, but assuming that the entry point of your app is <code>server.js</code> then you can use <code>&quot;start&quot;: &quot;node server.js&quot;</code>.</p>
<p>just FYI in case you start a new project, you can do it with <code>jsreport init</code> which creates the package.json with the &quot;scripts&quot;  configured properly.</p>
]]></description><link>https://forum.jsreport.net/post/5246</link><guid isPermaLink="true">https://forum.jsreport.net/post/5246</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to win-install reports error of no &quot;start&quot; or &quot;main&quot; script in package.json on Invalid Date]]></title><description><![CDATA[<p>Ah, okay I ran jsrpeport init again in an empty directory and I saw the start script does get created.  Sorry about that, I must have screwed something up along the way.</p>
<p>Love the product by the way keep up the good work!</p>
]]></description><link>https://forum.jsreport.net/post/5247</link><guid isPermaLink="true">https://forum.jsreport.net/post/5247</guid><dc:creator><![CDATA[MKuenzi]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>