title: How do I fix "ReferenceError: System is not defined" when running script from command line?
body: <p>I'm trying to create typescript server side (example code <code>import mongoose from 'mongoose';
  </code>) and I know I'm supposed to get systemjs initialized before, but I don't know how to in a server side script.</p>
  
  <p>tsconfig.json</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "es5",
      "module": "system",
      "moduleResolution": "node",
      "noImplicitAny": true,
      "removeComments": true,
      "preserveConstEnums": true,
      "sourceMap": true
    },
    "exclude": [
      "node_modules",
      "typings/main",
      "typings/main.d.ts"
    ]
  }
  </code></pre>