title: nodejs webserver "undefined is not a function"
body: <p>Im just going through a tutorial from a book (pro Angularjs) and having some trouble setting up a nodejs webserver.</p>
  
  <p>Like in the book described I use the following server.js to create it:</p>
  
  <pre><code>var connect = require('connect');
  connect.createServer(connect.static("../angularjs")).listen(5000);
  </code></pre>
  
  <p>When im trying to start the server with "node server.js" I get the error: </p>
  
  <pre><code>C:\Programme\nodejs&gt;node server.js
  C:\Program Files\nodejs\server.js:2
  connect.createServer(connect.static("../angularjs")).listen(5000);
                                     ^
  TypeError: undefined is not a function
      at Object.&lt;anonymous&gt; (C:\Program Files\nodejs\server.js:2:36)
      at Module._compile (module.js:460:26)
      at Object.Module._extensions..js (module.js:478:10)
      at Module.load (module.js:355:32)
      at Function.Module._load (module.js:310:12)
      at Function.Module.runMain (module.js:501:10)
      at startup (node.js:129:16)
      at node.js:814:3
  </code></pre>
  
  <p>Any help would be very appreciated,</p>
  
  <p>Greetings,
  Christian</p>