Angular2 5 minute install bug - require is not defined
<p>I'm doing the <a href="https://angular.io/docs/ts/latest/quickstart.html">Angular2 5 minute quick start</a>.</p>

<p>About half way through the tutorial now, I have the following files setup correctly:</p>

<ul>
<li>index.html,</li>
<li>app.component.ts</li>
<li>app/boot.ts</li>
<li>package.json</li>
<li>tconfig.json</li>
</ul>

<p>Ran <code>npm start</code> and am getting this error:</p>

<hr>

<p><code>Uncaught ReferenceError: require is not defined(anonymous function) @ boot.js:1
angular2-polyfills.js:143
Uncaught TypeError: Cannot read property 'split' of undefinedreadMemberExpression @ system.src.js:1456(anonymous function) @ system.src.js:3224(anonymous function) @ system.src.js:3749complete @ system.src.js:2487run @ angular2-polyfills.js:138zoneBoundFn @ angular2-polyfills.js:111</code></p>

<hr>

<p>I found this <a href="https://angular.io/docs/ts/latest/quickstart.html#!#es6support">link about using the es6 shim</a> and I included <code>&lt;script src="node_modules/es6-shim/es6-shim.js"&gt;&lt;/script&gt;</code>.</p>

<p><strong>However I'm still getting the</strong> <code>Uncaught ReferenceError: require is not defined</code> error.</p>

<hr>

<h3>app.component.ts</h3>

<pre><code>import {Component} from 'angular2/core';

@Component({
    selector: 'my-app',
    template: '&lt;h1&gt;My First Angular 2 App&lt;/h1&gt;'
})
export class AppComponent { }
</code></pre>

<h3>(app/boot.ts)</h3>

<pre><code>import {bootstrap}    from 'angular2/platform/browser'
import {AppComponent} from './app.component'

bootstrap(AppComponent);
</code></pre>

<h3>index.html</h3>

<pre><code>&lt;html&gt;

  &lt;head&gt;
    &lt;title&gt;Angular 2 QuickStart&lt;/title&gt;

    &lt;!-- 1. Load libraries --&gt;
    &lt;script src="node_modules/es6-shim/es6-shim.js"&gt;&lt;/script&gt;
    &lt;script src="node_modules/angular2/bundles/angular2-polyfills.js"&gt;&lt;/script&gt;
    &lt;script src="node_modules/systemjs/dist/system.src.js"&gt;&lt;/script&gt;
    &lt;script src="node_modules/rxjs/bundles/Rx.js"&gt;&lt;/script&gt;
    &lt;script src="node_modules/angular2/bundles/angular2.dev.js"&gt;&lt;/script&gt;

    &lt;!-- 2. Configure SystemJS --&gt;
    &lt;script&gt;
      System.config({
        packages: {        
          app: {
            format: 'register',
            defaultExtension: 'js'
          }
        }
      });
      System.import('app/boot')
            .then(null, console.error.bind(console));
    &lt;/script&gt;

  &lt;/head&gt;

  &lt;!-- 3. Display the application --&gt;
  &lt;body&gt;
    &lt;my-app&gt;Loading...&lt;/my-app&gt;
  &lt;/body&gt;

&lt;/html&gt;
</code></pre>

<h3>package.json</h3>

<pre><code>{
  "name": "angular2-quickstart",
  "version": "1.0.0",
  "scripts": {
    "tsc": "tsc",
    "tsc:w": "tsc -w",
    "lite": "lite-server",
    "start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
  },
  "license": "ISC",
  "dependencies": {
    "angular2": "2.0.0-beta.0",
    "systemjs": "0.19.6",
    "es6-promise": "^3.0.2",
    "es6-shim": "^0.33.3",
    "reflect-metadata": "0.1.2",
    "rxjs": "5.0.0-beta.0",
    "zone.js": "0.5.10"
  },
  "devDependencies": {
    "concurrently": "^1.0.0",
    "lite-server": "^1.3.1",
    "typescript": "^1.7.3"
  }
}
</code></pre>

<h3>tconfig.json</h3>

<pre><code>{
  "compilerOptions": {
    "target": "ES5",
    "module": "system",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false
  },
  "exclude": [
    "node_modules"
  ]
}
</code></pre>

<h3>The compiled app/boot.js</h3>

<p><a href="https://i.stack.imgur.com/Qm8b3.png"><img src="https://i.stack.imgur.com/Qm8b3.png" alt="enter image description here"></a></p>

<h3>Last log from <code>npm start</code></h3>

<p><a href="https://i.stack.imgur.com/kWxKW.png"><img src="https://i.stack.imgur.com/kWxKW.png" alt="enter image description here"></a></p>