title: 'npm start' with Express-Generator (NodeJS)
body: <p>I am a novice in NodeJS and I am trying to start with express and express-generator. I have installed express with the command:</p>
  
  <pre><code>C:\project&gt;npm install -g express
  </code></pre>
  
  <p>Then I've installed the express-generator module:</p>
  
  <pre><code>C:\project&gt;npm install -g express-generator
  </code></pre>
  
  <p>Then I create a folder for the project and install de dependencies:</p>
  
  <pre><code>C:\project\express&gt; nodetest1
  C:\project\nodetest1&gt;npm install
  </code></pre>
  
  <p>Everything works fine there, but the problem appears when I try to start the server, with the command:</p>
  
  <pre><code>C:\project\nodetest1&gt;npm start
  </code></pre>
  
  <p>It seems that the service starts but it closes as soon as it starts, result:</p>
  
  <pre><code>&gt; nodetest1@0.0.0 start C:\project\nodetest1
  &gt; node ./bin/www
  
  C:\project\nodetest1&gt;
  </code></pre>
  
  <p>When I try to open <em>localhost:3000</em> it doesn't work. I have search on the net and I haven't found a solution for it, could someone guide me on how to solve this problem?</p>
  
  <p>Thank you.</p>
  
  <p>Update 1:</p>
  
  <p>After having reinstalled node.js and followed the steps proposed below, now I get an error:</p>
  
  <pre><code>C:\wamp\www\mynewapp&gt;npm start
  
  &gt; mynewapp@0.0.0 start C:\wamp\www\mynewapp
  &gt; node ./bin/www
  
  
  npm ERR! mynewapp@0.0.0 start: `node ./bin/www`
  npm ERR! spawn ENOENT
  npm ERR!
  npm ERR! Failed at the mynewapp@0.0.0 start script.
  npm ERR! This is most likely a problem with the mynewapp package,
  npm ERR! not with npm itself.
  npm ERR! Tell the author that this fails on your system:
  npm ERR!     node ./bin/www
  npm ERR! You can get their info via:
  npm ERR!     npm owner ls mynewapp
  npm ERR! There is likely additional logging output above.
  npm ERR! System Windows_NT 6.1.7601
  npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
  npm ERR! cwd C:\wamp\www\mynewapp
  npm ERR! node -v v0.10.32
  npm ERR! npm -v 1.4.28
  npm ERR! syscall spawn
  npm ERR! code ELIFECYCLE
  npm ERR! errno ENOENT
  npm ERR! mynewapp@0.0.0 start: `node ./bin/www`
  npm ERR! Exit status -1
  npm ERR!
  npm ERR! Failed at the mynewapp@0.0.0 start script.
  npm ERR! This is most likely a problem with the mynewapp package,
  npm ERR! not with npm itself.
  npm ERR! Tell the author that this fails on your system:
  npm ERR!     node ./bin/www
  npm ERR! You can get their info via:
  npm ERR!     npm owner ls mynewapp
  npm ERR! There is likely additional logging output above.
  
  npm ERR! System Windows_NT 6.1.7601
  npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
  npm ERR! cwd C:\wamp\www\mynewapp
  npm ERR! node -v v0.10.32
  npm ERR! npm -v 1.4.28
  npm ERR! code ELIFECYCLE
  npm ERR!
  npm ERR! Additional logging details can be found in:
  npm ERR!     C:\wamp\www\mynewapp\npm-debug.log
  npm ERR! not ok code 0
  
  C:\wamp\www\mynewapp&gt;
  </code></pre>