<p dir="auto">Using the new <code class="notranslate">@Routes()</code> decorator won't render the component in the <code class="notranslate">router-outlet</code> when a page is refreshed on that link. I want to have the default route which will render the <code class="notranslate">LandingComponent</code>, but instead I get a blank page. Same if I request directly <code class="notranslate">/platform</code>. Both components have a simple hello world in them and when redirected by <code class="notranslate">[routerLink]</code>, everything works fine.</p>
<p dir="auto">Can this be caused by the lazy loader? If yes, how can i temporary disable it?</p>
<p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong></p>
<ul dir="auto">
<li>create new app using angular-cli</li>
<li>add 2 routes (landing and platform)</li>
<li>request one of the routes</li>
</ul>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Component } from '@angular/core';
import { LandingComponent } from './+landing';
import { Routes , ROUTER_DIRECTIVES} from '@angular/router';
import { PlatformComponent } from './+platform';

@Component({
  moduleId: module.id,
  selector: 'my-app',
  templateUrl: 'my.component.html',
  styleUrls: ['my.component.css'],
  directives: [ROUTER_DIRECTIVES]
})
@Routes([
  {path: '/', component: LandingComponent},
  {path: 'platform', component: PlatformComponent}
])
export class MyAppComponent {
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Component</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">LandingComponent</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./+landing'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Routes</span> <span class="pl-kos">,</span> <span class="pl-smi">ROUTER_DIRECTIVES</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/router'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">PlatformComponent</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./+platform'</span><span class="pl-kos">;</span>

@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
  <span class="pl-c1">moduleId</span>: <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">,</span>
  <span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">,</span>
  <span class="pl-c1">templateUrl</span>: <span class="pl-s">'my.component.html'</span><span class="pl-kos">,</span>
  <span class="pl-c1">styleUrls</span>: <span class="pl-kos">[</span><span class="pl-s">'my.component.css'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-c1">directives</span>: <span class="pl-kos">[</span><span class="pl-smi">ROUTER_DIRECTIVES</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
@<span class="pl-smi">Routes</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
  <span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">'/'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">LandingComponent</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">'platform'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">PlatformComponent</span><span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">MyAppComponent</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When the route is directly requested, a blank page is rendered instead of the component that belongs to the path.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Router should be able to automatically get the component for the route and render it.</p>
<p dir="auto">I have an amazon ec2 instance running with AMI linux terminal, I have installed Node and NPM using following steps mentioned in website - <a href="http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/#installNode" rel="nofollow">http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/#installNode</a></p>
<p dir="auto">I followed the 5 Min Quickstart guide and made proper folder and files, but when i execute npm start i get following error trace ..</p>
<p dir="auto"><code class="notranslate">0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'lite' ] 2 info using npm@3.8.1 3 info using node@v4.3.2 4 verbose run-script [ 'prelite', 'lite', 'postlite' ] 5 info lifecycle angular2-quickstart@1.0.0~prelite: angular2-quickstart@1.0.0 6 silly lifecycle angular2-quickstart@1.0.0~prelite: no script for prelite, continuing 7 info lifecycle angular2-quickstart@1.0.0~lite: angular2-quickstart@1.0.0 8 verbose lifecycle angular2-quickstart@1.0.0~lite: unsafe-perm in lifecycle true 9 verbose lifecycle angular2-quickstart@1.0.0~lite: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/.bin:/usr/local/bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/.bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin 10 verbose lifecycle angular2-quickstart@1.0.0~lite: CWD: /home/ec2-user/EnterpriseSearch/angular2-quickstart 11 silly lifecycle angular2-quickstart@1.0.0~lite: Args: [ '-c', 'lite-server' ] 12 silly lifecycle angular2-quickstart@1.0.0~lite: Returned: code: 1  signal: null 13 info lifecycle angular2-quickstart@1.0.0~lite: Failed to exec lite script 14 verbose stack Error: angular2-quickstart@1.0.0 lite:</code>lite-server<code class="notranslate"> 14 verbose stack Exit status 1 14 verbose stack     at EventEmitter.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:239:16) 14 verbose stack     at emitTwo (events.js:87:13) 14 verbose stack     at EventEmitter.emit (events.js:172:7) 14 verbose stack     at ChildProcess.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) 14 verbose stack     at emitTwo (events.js:87:13) 14 verbose stack     at ChildProcess.emit (events.js:172:7) 14 verbose stack     at maybeClose (internal/child_process.js:821:16) 14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 15 verbose pkgid angular2-quickstart@1.0.0 16 verbose cwd /home/ec2-user/EnterpriseSearch/angular2-quickstart 17 error Linux 4.1.17-22.30.amzn1.x86_64 18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lite" 19 error node v4.3.2 20 error npm  v3.8.1 21 error code ELIFECYCLE 22 error angular2-quickstart@1.0.0 lite:</code>lite-server<code class="notranslate"> 22 error Exit status 1 23 error Failed at the angular2-quickstart@1.0.0 lite script 'lite-server'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the angular2-quickstart package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error     lite-server 23 error You can get information on how to open an issue for this project with: 23 error     npm bugs angular2-quickstart 23 error Or if that isn't available, you can get their info via: 23 error     npm owner ls angular2-quickstart 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]</code></p>
<p dir="auto">complete error log :</p>
<p dir="auto">=========================Log==================================</p>
<blockquote>
<p dir="auto">[ec2-user@ip-10-0-0-213 angular2-quickstart]$ sudo npm start</p>
<p dir="auto">angular2-quickstart@1.0.0 start /home/ec2-user/EnterpriseSearch/angular2-quickstart<br>
concurrently "npm run tsc:w" "npm run lite"</p>
</blockquote>
<p dir="auto">[1]<br>
[1] &gt; angular2-quickstart@1.0.0 lite /home/ec2-user/EnterpriseSearch/angular2-quickstart<br>
[1] &gt; lite-server<br>
[1]<br>
[0]<br>
[0] &gt; angular2-quickstart@1.0.0 tsc:w /home/ec2-user/EnterpriseSearch/angular2-quickstart<br>
[0] &gt; tsc -w<br>
[0]<br>
[1] Did not detect a <code class="notranslate">bs-config.json</code> or <code class="notranslate">bs-config.js</code> override file. Using lite-server defaults...<br>
[1] <em>* browser-sync options **<br>
[1] { injectChanges: false,<br>
[1]   files: [ './</em><em>/</em>.{html,htm,css,js}' ],<br>
[1]   server: { baseDir: './', middleware: [ [Function], [Function] ] } }<br>
[1] [BS] Access URLs:<br>
[1]  -----------------------------------<br>
[1]        Local: <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a><br>
[1]     External: <a href="http://10.0.0.213:3000" rel="nofollow">http://10.0.0.213:3000</a><br>
[1]  -----------------------------------<br>
[1]           UI: <a href="http://localhost:3001" rel="nofollow">http://localhost:3001</a><br>
[1]  UI External: <a href="http://10.0.0.213:3001" rel="nofollow">http://10.0.0.213:3001</a><br>
[1]  -----------------------------------<br>
[1] [BS] Serving files from: ./<br>
[1] [BS] Watching files...<br>
[0] node_modules/angular2/platform/browser.d.ts(77,90): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(83,60): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(83,146): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(96,51): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(96,147): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(133,90): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(171,81): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(4,42): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/debug/debug_node.d.ts(14,13): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/debug/debug_node.d.ts(24,17): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/debug/debug_node.d.ts(25,17): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/di/provider.d.ts(436,103): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/di/provider.d.ts(436,135): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/linker/compiler.d.ts(12,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/compiler.d.ts(16,41): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(108,136): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(156,150): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(197,128): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(203,127): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(204,141): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(205,119): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/render/api.d.ts(13,13): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/render/api.d.ts(14,84): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/async.d.ts(27,33): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/async.d.ts(28,45): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(95,41): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(96,22): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(97,25): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/lang.d.ts(13,17): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/lang.d.ts(14,17): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/lang.d.ts(79,59): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(2,14): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(7,32): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(8,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(9,35): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(9,93): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(10,34): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(11,32): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(11,149): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(12,43): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/platform/browser/browser_adapter.d.ts(75,33): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/platform/dom/dom_adapter.d.ts(85,42): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(35,67): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(50,66): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(89,67): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(94,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(94,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(46,62): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(47,42): error TS2304: Cannot find name 'Iterator'.<br>
[0] node_modules/rxjs/Observable.d.ts(103,74): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(103,84): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(143,66): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(158,65): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(201,66): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(206,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(206,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(6,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(7,58): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/FromObservable.d.ts(7,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/FromObservable.d.ts(7,51): error TS2304: Cannot find name 'Iterator'.<br>
[0] node_modules/rxjs/observable/PromiseObservable.d.ts(9,31): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/PromiseObservable.d.ts(10,26): error TS2304: Cannot find name 'Promise'.<br>
[0] 12:15:34 - Compilation complete. Watching for file changes.<br>
[1] events.js:141<br>
[1]       throw er; // Unhandled 'error' event<br>
[1]       ^<br>
[1]<br>
[1] Error: watch node_modules/angular2/es6/dev/src/router/route_lifecycle_reflector.js ENOSPC<br>
[1]     at exports._errnoException (util.js:870:11)<br>
[1]     at FSWatcher.start (fs.js<g-emoji class="g-emoji" alias="1234" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f522.png">🔢</g-emoji>19)<br>
[1]     at Object.fs.watch (fs.js:1262:11)<br>
[1]     at createFsWatchInstance (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:37:15)<br>
[1]     at setFsWatchListener (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:80:15)<br>
[1]     at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:228:14)<br>
[1]     at FSWatcher.NodeFsHandler._handleFile (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:255:21)<br>
[1]     at FSWatcher. (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:473:21)<br>
[1]     at FSReqWrap.oncomplete (fs.js:82:15)<br>
[1]<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]  Linux 4.1.17-22.30.amzn1.x86_64<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]<br>
[1] argv<br>
[1]  "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lite"<br>
[1] npm<br>
[1]  ERR! node v4.3.2<br>
[1] npm<br>
[1]  ERR! npm  v3.8.1<br>
[1] npm ERR! code ELIFECYCLE<br>
[1] npm ERR! angular2-quickstart@1.0.0 lite: <code class="notranslate">lite-server</code><br>
[1] npm ERR! Exit status 1<br>
[1] npm ERR!<br>
[1] npm ERR! Failed at the angular2-quickstart@1.0.0 lite script 'lite-server'.<br>
[1] npm ERR! Make sure you have the latest version of node.js and npm installed.<br>
[1] npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,<br>
[1] npm ERR! not with npm itself.<br>
[1] npm ERR! Tell the author that this fails on your system:<br>
[1] npm ERR!     lite-server<br>
[1] npm ERR! You can get information on how to open an issue for this project with:<br>
[1] npm ERR!     npm bugs angular2-quickstart<br>
[1] npm ERR! Or if that isn't available, you can get their info via:<br>
[1] npm ERR!     npm owner ls angular2-quickstart<br>
[1] npm ERR!<br>
[1]  There is likely additional logging output above.<br>
[1]<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]  Please include the following file with any support request:<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]      /home/ec2-user/EnterpriseSearch/angular2-quickstart/npm-debug.log<br>
[1] npm run lite exited with code 1<br>
^C[ec2-user@ip-10-0-0-213 angular2-quickstart]$ sudo npm start</p>
<blockquote>
<p dir="auto">angular2-quickstart@1.0.0 start /home/ec2-user/EnterpriseSearch/angular2-quickstart<br>
concurrently "npm run tsc:w" "npm run lite"</p>
</blockquote>
<p dir="auto">[0]<br>
[0] &gt; angular2-quickstart@1.0.0 tsc:w /home/ec2-user/EnterpriseSearch/angular2-quickstart<br>
[0] &gt; tsc -w<br>
[0]<br>
[1]<br>
[1] &gt; angular2-quickstart@1.0.0 lite /home/ec2-user/EnterpriseSearch/angular2-quickstart<br>
[1] &gt; lite-server<br>
[1]<br>
[1] Did not detect a <code class="notranslate">bs-config.json</code> or <code class="notranslate">bs-config.js</code> override file. Using lite-server defaults...<br>
[1] <em>* browser-sync options **<br>
[1] { injectChanges: false,<br>
[1]   files: [ './</em><em>/</em>.{html,htm,css,js}' ],<br>
[1]   server: { baseDir: './', middleware: [ [Function], [Function] ] } }<br>
[1] [BS] Access URLs:<br>
[1]  -----------------------------------<br>
[1]        Local: <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a><br>
[1]     External: <a href="http://10.0.0.213:3000" rel="nofollow">http://10.0.0.213:3000</a><br>
[1]  -----------------------------------<br>
[1]           UI: <a href="http://localhost:3001" rel="nofollow">http://localhost:3001</a><br>
[1]  UI External: <a href="http://10.0.0.213:3001" rel="nofollow">http://10.0.0.213:3001</a><br>
[1]  -----------------------------------<br>
[1] [BS] Serving files from: ./<br>
[1] [BS] Watching files...<br>
[0] node_modules/angular2/platform/browser.d.ts(77,90): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(83,60): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(83,146): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(96,51): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(96,147): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(133,90): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/application_ref.d.ts(171,81): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(4,42): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/debug/debug_node.d.ts(14,13): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/debug/debug_node.d.ts(24,17): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/debug/debug_node.d.ts(25,17): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/di/provider.d.ts(436,103): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/di/provider.d.ts(436,135): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/linker/compiler.d.ts(12,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/compiler.d.ts(16,41): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(108,136): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(156,150): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(197,128): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(203,127): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(204,141): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(205,119): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/core/render/api.d.ts(13,13): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/core/render/api.d.ts(14,84): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/async.d.ts(27,33): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/async.d.ts(28,45): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(95,41): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(96,22): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/collection.d.ts(97,25): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/lang.d.ts(13,17): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/lang.d.ts(14,17): error TS2304: Cannot find name 'Set'.<br>
[0] node_modules/angular2/src/facade/lang.d.ts(79,59): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(2,14): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(7,32): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(8,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(9,35): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(9,93): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(10,34): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(11,32): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(11,149): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/facade/promise.d.ts(12,43): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/angular2/src/platform/browser/browser_adapter.d.ts(75,33): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/angular2/src/platform/dom/dom_adapter.d.ts(85,42): error TS2304: Cannot find name 'Map'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(35,67): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(50,66): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(89,67): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(94,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/CoreOperators.d.ts(94,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(46,62): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(47,42): error TS2304: Cannot find name 'Iterator'.<br>
[0] node_modules/rxjs/Observable.d.ts(103,74): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(103,84): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(143,66): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(158,65): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(201,66): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(206,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/Observable.d.ts(206,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(6,50): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(7,58): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/FromObservable.d.ts(7,38): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/FromObservable.d.ts(7,51): error TS2304: Cannot find name 'Iterator'.<br>
[0] node_modules/rxjs/observable/PromiseObservable.d.ts(9,31): error TS2304: Cannot find name 'Promise'.<br>
[0] node_modules/rxjs/observable/PromiseObservable.d.ts(10,26): error TS2304: Cannot find name 'Promise'.<br>
[0] 12:16:28 - Compilation complete. Watching for file changes.<br>
[1] [BS] File changed: app/app.component.js<br>
[1] [BS] File changed: app/main.js<br>
[1] events.js:141<br>
[1]       throw er; // Unhandled 'error' event<br>
[1]       ^<br>
[1]<br>
[1] Error: watch node_modules/angular2/es6/dev/src/router/route_lifecycle_reflector.js ENOSPC<br>
[1]     at exports._errnoException (util.js:870:11)<br>
[1]     at FSWatcher.start (fs.js🔢19)<br>
[1]     at Object.fs.watch (fs.js:1262:11)<br>
[1]     at createFsWatchInstance (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:37:15)<br>
[1]     at setFsWatchListener (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:80:15)<br>
[1]     at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:228:14)<br>
[1]     at FSWatcher.NodeFsHandler._handleFile (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:255:21)<br>
[1]     at FSWatcher. (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:473:21)<br>
[1]     at FSReqWrap.oncomplete (fs.js:82:15)<br>
[1]<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]  Linux 4.1.17-22.30.amzn1.x86_64<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]<br>
[1] argv<br>
[1]  "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lite"<br>
[1] npm<br>
[1]  ERR! node v4.3.2<br>
[1] npm ERR! npm  v3.8.1<br>
[1] npm ERR! code ELIFECYCLE<br>
[1] npm ERR! angular2-quickstart@1.0.0 lite: <code class="notranslate">lite-server</code><br>
[1] npm ERR! Exit status 1<br>
[1] npm ERR!<br>
[1] npm ERR! Failed at the angular2-quickstart@1.0.0 lite script 'lite-server'.<br>
[1] npm ERR! Make sure you have the latest version of node.js and npm installed.<br>
[1] npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,<br>
[1] npm ERR! not with npm itself.<br>
[1] npm ERR! Tell the author that this fails on your system:<br>
[1] npm ERR!     lite-server<br>
[1] npm ERR! You can get information on how to open an issue for this project with:<br>
[1] npm ERR!     npm bugs angular2-quickstart<br>
[1] npm ERR! Or if that isn't available, you can get their info via:<br>
[1] npm ERR!     npm owner ls angular2-quickstart<br>
[1] npm ERR!<br>
[1]  There is likely additional logging output above.<br>
[1]<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]  Please include the following file with any support request:<br>
[1] npm<br>
[1]<br>
[1] ERR!<br>
[1]      /home/ec2-user/EnterpriseSearch/angular2-quickstart/npm-debug.log<br>
[1] npm run lite exited with code 1</p>
<p dir="auto">How can we get it running ?? by changing the lite server or something ??</p>