title: Creating a simple node.js static server
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var express = require('express');
  var app = express();
  app.use('/', express.static('./'));
  app.listen(80);</code></pre>
  </div>
  </div>
  </p>
  
  <blockquote>
    <p>The error msg I receive in the cli via "node server.js" is:
    events.js:160
          throw er; // Unhandled 'error' event
          ^</p>
    
    <p>Error: listen EACCES 0.0.0.0:80
        at Object.exports._errnoException (util.js:1018:11)
        at exports._exceptionWithHostPort (util.js:1041:20)
        at Server._listen2 (net.js:1245:19)
        at listen (net.js:1294:10)
        at Server.listen (net.js:1390:5)
        at EventEmitter.listen (G:\angular\node_modules\express\lib\application.js:618:24)
        at Object. (G:\angular\server.js:4:5)
        at Module._compile (module.js:570:32)
        at Object.Module._extensions..js (module.js:579:10)
        at Module.load (module.js:487:32)</p>
    
    <p>Any ideas why a simple bit of code would generate errors?  I got the
    code from an older angularjs book I'm trying to learn from.   Changes
    with node or express possibly?</p>
  </blockquote>