title: Why will node.exe not run sample file where cmd.exe will?
body: <p>I've downloaded and run the latest nodejs .msi for Windows (7), updated PATH (<code>;C:\nodejs</code>), installed nssm and created a service - all's well there hopefully.</p>
  
  <p>Next, I have a sample server.js file from many an online tutorial and have failed to start the nodejs server via C:\nodejs\node.exe. The nodejs terminal opens, and I can input valid javascript, eg: <code>["a","b"].join()</code> and receive output: <code>"a,b"</code>. My sample file is in the same dir as node.exe - but when I input "node server.js", all I get is "...", I must CTRL+C to exit that state.</p>
  
  <p>When I open a Windows cmd prompt, <code>cd C:\nodejs\</code> and input "node server.js", I receive the expected output from server.js and localhost: 8124 displays the sample message. I then also tried to use npm to install express via node.exe prompt, but couldn't</p>
  
  <p>Why won't node.exe terminal start the sample server, where cmd will?</p>
  
  <p><img src="https://i.stack.imgur.com/0LNiC.png" alt="successful &quot;npm install express&quot; in cmd, the same failed in node.exe"></p>