How to control where NPM finds server.js?
<p>I'm following <a href="https://medium.com/@dabit3/introduction-to-using-npm-as-a-build-tool-b41076f488b0#.lw3myhdza" rel="nofollow">this blog</a> and in the section 4, they show how to execute and run an application. It's working as described.</p>

<p>Now, I'd like to put the file <em>server.js</em>, which is the entry point in a directory called <em>app</em>. The command <em>npm start</em> doesn't find it any more, though.</p>

<p>After some googling I've read that I'm supposed to put in the following line in the <em>package.json</em>, which I did.</p>

<blockquote>
  <p>"start": "app/server.js",</p>
</blockquote>

<p>The problem is that it still can't find it and I can't really diagnose the issue. Is it because the entry point <strong>must</strong> be in the root? Does the <em>start</em> element need to be placed in a certain order in JSON file? Am I specifying the path incorrectly (I've tried "\" and "/" etc.)?</p>