Issue 1:
Using the new @Routes() decorator won't render the component in the router-outlet when a page is refreshed on that link. I want to have the default route which will render the LandingComponent, but instead I get a blank page. Same if I request directly /platform. Both components have a simple hello world in them and when redirected by [routerLink], everything works fine.

Can this be caused by the lazy loader? If yes, how can i temporary disable it?

Steps to reproduce and a minimal demo of the problem

create new app using angular-cli

add 2 routes (landing and platform)

request one of the routes

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 {
}

Current behavior

When the route is directly requested, a blank page is rendered instead of the component that belongs to the path.

Expected/desired behavior

Router should be able to automatically get the component for the route and render it.

Issue 2:
I have an amazon ec2 instance running with AMI linux terminal, I have installed Node and NPM using following steps mentioned in website - http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/#installNode

I followed the 5 Min Quickstart guide and made proper folder and files, but when i execute npm start i get following error trace ..

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:lite-server 14 verbose stack Exit status 1 14 verbose stack at EventEmitter.<anonymous> (/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.<anonymous> (/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:lite-server 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 ]

complete error log :

=========================Log==================================

[ec2-user@ip-10-0-0-213 angular2-quickstart]$ sudo npm start

angular2-quickstart@1.0.0 start /home/ec2-user/EnterpriseSearch/angular2-quickstart

concurrently "npm run tsc:w" "npm run lite"

[1]

[1] > angular2-quickstart@1.0.0 lite /home/ec2-user/EnterpriseSearch/angular2-quickstart

[1] > lite-server

[1]

[0]

[0] > angular2-quickstart@1.0.0 tsc:w /home/ec2-user/EnterpriseSearch/angular2-quickstart

[0] > tsc -w

[0]

[1] Did not detect a bs-config.json or bs-config.js override file. Using lite-server defaults...

[1] * browser-sync options **

[1] { injectChanges: false,

[1] files: [ './/.{html,htm,css,js}' ],

[1] server: { baseDir: './', middleware: [ [Function], [Function] ] } }

[1] [BS] Access URLs:

[1] -----------------------------------

[1] Local: http://localhost:3000

[1] External: http://10.0.0.213:3000

[1] -----------------------------------

[1] UI: http://localhost:3001

[1] UI External: http://10.0.0.213:3001

[1] -----------------------------------

[1] [BS] Serving files from: ./

[1] [BS] Watching files...

[0] node_modules/angular2/platform/browser.d.ts(77,90): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(83,60): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(83,146): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(96,51): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(96,147): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(133,90): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(171,81): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(4,42): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/debug/debug_node.d.ts(14,13): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/debug/debug_node.d.ts(24,17): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/debug/debug_node.d.ts(25,17): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/di/provider.d.ts(436,103): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/di/provider.d.ts(436,135): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/linker/compiler.d.ts(12,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/compiler.d.ts(16,41): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(108,136): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(156,150): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(197,128): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(203,127): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(204,141): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(205,119): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/render/api.d.ts(13,13): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/render/api.d.ts(14,84): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/async.d.ts(27,33): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/async.d.ts(28,45): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'.

[0] node_modules/angular2/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'.

[0] node_modules/angular2/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(95,41): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/collection.d.ts(96,22): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/collection.d.ts(97,25): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/lang.d.ts(13,17): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/lang.d.ts(14,17): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/lang.d.ts(79,59): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/promise.d.ts(2,14): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(7,32): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(8,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(9,35): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(9,93): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(10,34): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(11,32): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(11,149): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(12,43): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/platform/browser/browser_adapter.d.ts(75,33): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/platform/dom/dom_adapter.d.ts(85,42): error TS2304: Cannot find name 'Map'.

[0] node_modules/rxjs/CoreOperators.d.ts(35,67): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(50,66): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(89,67): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(94,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(94,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(46,62): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(47,42): error TS2304: Cannot find name 'Iterator'.

[0] node_modules/rxjs/Observable.d.ts(103,74): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(103,84): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(143,66): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(158,65): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(201,66): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(206,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(206,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(6,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(7,58): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/FromObservable.d.ts(7,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/FromObservable.d.ts(7,51): error TS2304: Cannot find name 'Iterator'.

[0] node_modules/rxjs/observable/PromiseObservable.d.ts(9,31): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/PromiseObservable.d.ts(10,26): error TS2304: Cannot find name 'Promise'.

[0] 12:15:34 - Compilation complete. Watching for file changes.

[1] events.js:141

[1] throw er; // Unhandled 'error' event

[1] ^

[1]

[1] Error: watch node_modules/angular2/es6/dev/src/router/route_lifecycle_reflector.js ENOSPC

[1] at exports._errnoException (util.js:870:11)

[1] at FSWatcher.start (fs.js🔢19)

[1] at Object.fs.watch (fs.js:1262:11)

[1] at createFsWatchInstance (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:37:15)

[1] at setFsWatchListener (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:80:15)

[1] at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:228:14)

[1] at FSWatcher.NodeFsHandler._handleFile (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:255:21)

[1] at FSWatcher. (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:473:21)

[1] at FSReqWrap.oncomplete (fs.js:82:15)

[1]

[1] npm

[1]

[1] ERR!

[1] Linux 4.1.17-22.30.amzn1.x86_64

[1] npm

[1]

[1] ERR!

[1]

[1] argv

[1] "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lite"

[1] npm

[1] ERR! node v4.3.2

[1] npm

[1] ERR! npm v3.8.1

[1] npm ERR! code ELIFECYCLE

[1] npm ERR! angular2-quickstart@1.0.0 lite: lite-server

[1] npm ERR! Exit status 1

[1] npm ERR!

[1] npm ERR! Failed at the angular2-quickstart@1.0.0 lite script 'lite-server'.

[1] npm ERR! Make sure you have the latest version of node.js and npm installed.

[1] npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,

[1] npm ERR! not with npm itself.

[1] npm ERR! Tell the author that this fails on your system:

[1] npm ERR! lite-server

[1] npm ERR! You can get information on how to open an issue for this project with:

[1] npm ERR! npm bugs angular2-quickstart

[1] npm ERR! Or if that isn't available, you can get their info via:

[1] npm ERR! npm owner ls angular2-quickstart

[1] npm ERR!

[1] There is likely additional logging output above.

[1]

[1] npm

[1]

[1] ERR!

[1] Please include the following file with any support request:

[1] npm

[1]

[1] ERR!

[1] /home/ec2-user/EnterpriseSearch/angular2-quickstart/npm-debug.log

[1] npm run lite exited with code 1

^C[ec2-user@ip-10-0-0-213 angular2-quickstart]$ sudo npm start

angular2-quickstart@1.0.0 start /home/ec2-user/EnterpriseSearch/angular2-quickstart

concurrently "npm run tsc:w" "npm run lite"

[0]

[0] > angular2-quickstart@1.0.0 tsc:w /home/ec2-user/EnterpriseSearch/angular2-quickstart

[0] > tsc -w

[0]

[1]

[1] > angular2-quickstart@1.0.0 lite /home/ec2-user/EnterpriseSearch/angular2-quickstart

[1] > lite-server

[1]

[1] Did not detect a bs-config.json or bs-config.js override file. Using lite-server defaults...

[1] * browser-sync options **

[1] { injectChanges: false,

[1] files: [ './/.{html,htm,css,js}' ],

[1] server: { baseDir: './', middleware: [ [Function], [Function] ] } }

[1] [BS] Access URLs:

[1] -----------------------------------

[1] Local: http://localhost:3000

[1] External: http://10.0.0.213:3000

[1] -----------------------------------

[1] UI: http://localhost:3001

[1] UI External: http://10.0.0.213:3001

[1] -----------------------------------

[1] [BS] Serving files from: ./

[1] [BS] Watching files...

[0] node_modules/angular2/platform/browser.d.ts(77,90): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(83,60): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(83,146): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(96,51): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(96,147): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(133,90): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/application_ref.d.ts(171,81): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/change_detection/parser/locals.d.ts(4,42): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/debug/debug_node.d.ts(14,13): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/debug/debug_node.d.ts(24,17): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/debug/debug_node.d.ts(25,17): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/di/provider.d.ts(436,103): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/di/provider.d.ts(436,135): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/linker/compiler.d.ts(12,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/compiler.d.ts(16,41): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(108,136): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(156,150): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(197,128): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(203,127): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(204,141): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(205,119): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/core/render/api.d.ts(13,13): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/core/render/api.d.ts(14,84): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/async.d.ts(27,33): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/async.d.ts(28,45): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'.

[0] node_modules/angular2/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'.

[0] node_modules/angular2/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/collection.d.ts(95,41): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/collection.d.ts(96,22): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/collection.d.ts(97,25): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/lang.d.ts(13,17): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/lang.d.ts(14,17): error TS2304: Cannot find name 'Set'.

[0] node_modules/angular2/src/facade/lang.d.ts(79,59): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/facade/promise.d.ts(2,14): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(7,32): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(8,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(9,35): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(9,93): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(10,34): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(11,32): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(11,149): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/facade/promise.d.ts(12,43): error TS2304: Cannot find name 'Promise'.

[0] node_modules/angular2/src/platform/browser/browser_adapter.d.ts(75,33): error TS2304: Cannot find name 'Map'.

[0] node_modules/angular2/src/platform/dom/dom_adapter.d.ts(85,42): error TS2304: Cannot find name 'Map'.

[0] node_modules/rxjs/CoreOperators.d.ts(35,67): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(50,66): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(89,67): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(94,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/CoreOperators.d.ts(94,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(46,62): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(47,42): error TS2304: Cannot find name 'Iterator'.

[0] node_modules/rxjs/Observable.d.ts(103,74): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(103,84): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(143,66): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(158,65): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(201,66): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(206,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/Observable.d.ts(206,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(6,50): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/ForkJoinObservable.d.ts(7,58): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/FromObservable.d.ts(7,38): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/FromObservable.d.ts(7,51): error TS2304: Cannot find name 'Iterator'.

[0] node_modules/rxjs/observable/PromiseObservable.d.ts(9,31): error TS2304: Cannot find name 'Promise'.

[0] node_modules/rxjs/observable/PromiseObservable.d.ts(10,26): error TS2304: Cannot find name 'Promise'.

[0] 12:16:28 - Compilation complete. Watching for file changes.

[1] [BS] File changed: app/app.component.js

[1] [BS] File changed: app/main.js

[1] events.js:141

[1] throw er; // Unhandled 'error' event

[1] ^

[1]

[1] Error: watch node_modules/angular2/es6/dev/src/router/route_lifecycle_reflector.js ENOSPC

[1] at exports._errnoException (util.js:870:11)

[1] at FSWatcher.start (fs.js🔢19)

[1] at Object.fs.watch (fs.js:1262:11)

[1] at createFsWatchInstance (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:37:15)

[1] at setFsWatchListener (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:80:15)

[1] at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:228:14)

[1] at FSWatcher.NodeFsHandler._handleFile (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:255:21)

[1] at FSWatcher. (/home/ec2-user/EnterpriseSearch/angular2-quickstart/node_modules/chokidar/lib/nodefs-handler.js:473:21)

[1] at FSReqWrap.oncomplete (fs.js:82:15)

[1]

[1] npm

[1]

[1] ERR!

[1] Linux 4.1.17-22.30.amzn1.x86_64

[1] npm

[1]

[1] ERR!

[1]

[1] argv

[1] "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lite"

[1] npm

[1] ERR! node v4.3.2

[1] npm ERR! npm v3.8.1

[1] npm ERR! code ELIFECYCLE

[1] npm ERR! angular2-quickstart@1.0.0 lite: lite-server

[1] npm ERR! Exit status 1

[1] npm ERR!

[1] npm ERR! Failed at the angular2-quickstart@1.0.0 lite script 'lite-server'.

[1] npm ERR! Make sure you have the latest version of node.js and npm installed.

[1] npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,

[1] npm ERR! not with npm itself.

[1] npm ERR! Tell the author that this fails on your system:

[1] npm ERR! lite-server

[1] npm ERR! You can get information on how to open an issue for this project with:

[1] npm ERR! npm bugs angular2-quickstart

[1] npm ERR! Or if that isn't available, you can get their info via:

[1] npm ERR! npm owner ls angular2-quickstart

[1] npm ERR!

[1] There is likely additional logging output above.

[1]

[1] npm

[1]

[1] ERR!

[1] Please include the following file with any support request:

[1] npm

[1]

[1] ERR!

[1] /home/ec2-user/EnterpriseSearch/angular2-quickstart/npm-debug.log

[1] npm run lite exited with code 1

How can we get it running ?? by changing the lite server or something ??