title: Node.js Cannot read property 'on' of undefined
body: <p>What is wrong?</p>
  
  <p>p.s. : I am new to node.js and I'm from .Net world!</p>
  
  <p>My server.js code :  </p>
  
  <pre><code>    var events = require('events').EventEmitter;
      var v = function() {
          var e = new events();
          e.emit('start');
      };
  
      var r = v();
      r.on('start', function(){
          console.log('event start just fired!!!!!!!!!!');
      });
  </code></pre>
  
  <p>and this console output :</p>
  
  <pre><code>TypeError: Cannot read property 'on' of undefined
      at Object.&lt;anonymous&gt; (E:\Project\node\BasicSocial\server.js:12:2)
      at Module._compile (module.js:410:26)
      at Object.Module._extensions..js (module.js:417:10)
      at Module.load (module.js:344:32)
      at Function.Module._load (module.js:301:12)
      at Function.Module.runMain (module.js:442:10)
      at startup (node.js:136:18)
      at node.js:966:3
  </code></pre>