title: Using require('angular') in node gives Window is not Defined
body: <p>So I am completely new to node but I figured out how to install node_modules. What I am trying to figure out is how to properly include 'Angular' into my code.</p>
  
  <p>So from a new express 4 spin up I did:</p>
  
  <pre><code>npm install --save angular
  </code></pre>
  
  <p>Then I went into <code>routes/index.js</code> and added the <code>require('angular')</code>:</p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  require('angular');
  
  /* GET home page. */
  router.get('/', function(req, res, next) {
    res.render('index', { title: 'Express' });
  });
  
  module.exports = router;
  </code></pre>
  
  <p>But when I do node start I get an error that says:</p>
  
  <pre><code>ReferenceError: window is not defined
      at Object.&lt;anonymous&gt; (/Users/al/Projects/node/podcastsearch/podcast/node_modules/angular/angular.js:26307:4)
      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 Module.require (module.js:365:17)
      at require (module.js:384:17)
      at Object.&lt;anonymous&gt; (/Users/al/Projects/node/podcastsearch/podcast/node_modules/angular/index.js:1:63)
      at Module._compile (module.js:460:26)
      at Object.Module._extensions..js (module.js:478:10)
  </code></pre>
  
  <p>What is the proper way to include angular?</p>