johnpapa / angular-tour-of-heroes

Angular - Tour of Heroes - The Next Step after Getting Started
Apache License 2.0
825 stars 1.44k forks source link

not working in Mac when run npm start (installed the latest node and npm) #70

Closed damieneskimo closed 7 years ago

damieneskimo commented 8 years ago

angular2-tour-of-heroes@0.0.1 start /Users/Will/Downloads/angular2-tour-of-heroes-master tsc && concurrently "npm run tsc:w" "npm run lite"

app/dashboard.component.ts(23,13): error TS7006: Parameter 'heroes' implicitly has an 'any' type. app/hero-detail.component.ts(23,13): error TS7006: Parameter 'hero' implicitly has an 'any' type. app/hero.service.ts(9,12): error TS2304: Cannot find name 'Promise'. app/hero.service.ts(13,16): error TS2304: Cannot find name 'Promise'. app/hero.service.ts(13,32): error TS7006: Parameter 'resolve' implicitly has an 'any' type. app/hero.service.ts(19,12): error TS2304: Cannot find name 'Promise'. app/hero.service.ts(20,7): error TS7006: Parameter 'heroes' implicitly has an 'any' type. app/hero.service.ts(20,31): error TS7006: Parameter 'hero' implicitly has an 'any' type. app/heroes.component.ts(23,40): error TS7006: Parameter 'heroes' implicitly has an 'any' type. node_modules/angular2/platform/browser.d.ts(77,90): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/application_ref.d.ts(83,60): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/application_ref.d.ts(83,146): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/application_ref.d.ts(96,51): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/application_ref.d.ts(96,147): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/application_ref.d.ts(133,90): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/application_ref.d.ts(171,81): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/change_detection/differs/default_keyvalue_differ.d.ts(23,15): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/change_detection/differs/default_keyvalue_differ.d.ts(25,16): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/change_detection/parser/locals.d.ts(4,42): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/debug/debug_node.d.ts(14,13): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/debug/debug_node.d.ts(24,17): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/debug/debug_node.d.ts(25,17): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/di/provider.d.ts(436,103): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/di/provider.d.ts(436,135): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/compiler.d.ts(12,50): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/compiler.d.ts(16,41): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(108,136): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(156,150): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(197,128): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(203,127): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(204,141): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/dynamic_component_loader.d.ts(205,119): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/render/api.d.ts(13,13): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/render/api.d.ts(14,84): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/async.d.ts(27,33): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/async.d.ts(28,45): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'. node_modules/angular2/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'. node_modules/angular2/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/collection.d.ts(99,41): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/facade/collection.d.ts(100,22): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/facade/collection.d.ts(101,25): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/facade/lang.d.ts(4,17): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/lang.d.ts(5,17): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/facade/lang.d.ts(71,59): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/facade/promise.d.ts(2,14): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(8,32): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(9,38): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(10,35): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(10,93): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(11,34): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(11,50): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(12,32): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(12,149): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/facade/promise.d.ts(13,43): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/platform/browser/browser_adapter.d.ts(75,33): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/platform/dom/dom_adapter.d.ts(85,42): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/router/directives/router_outlet.d.ts(25,54): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/directives/router_outlet.d.ts(31,51): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/directives/router_outlet.d.ts(36,56): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/directives/router_outlet.d.ts(45,65): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/directives/router_outlet.d.ts(56,60): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/instruction.d.ts(124,34): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/instruction.d.ts(148,25): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/instruction.d.ts(164,34): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/instruction.d.ts(167,25): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/interfaces.d.ts(21,107): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/interfaces.d.ts(39,104): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/interfaces.d.ts(57,109): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/interfaces.d.ts(80,109): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/interfaces.d.ts(102,114): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/lifecycle/lifecycle_annotations.d.ts(29,100): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/route_config/route_config_impl.d.ts(101,19): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/route_definition.d.ts(20,20): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/route_definition.d.ts(35,20): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/route_registry.d.ts(52,66): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(56,50): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(68,46): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(86,45): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(99,34): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(107,64): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(112,85): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(120,70): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(128,43): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(132,29): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(138,19): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/router/router.d.ts(146,70): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/CoreOperators.d.ts(35,67): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/CoreOperators.d.ts(50,66): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/CoreOperators.d.ts(89,67): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/CoreOperators.d.ts(94,38): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/CoreOperators.d.ts(94,50): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(46,62): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(47,42): error TS2304: Cannot find name 'Iterator'. node_modules/rxjs/Observable.d.ts(103,74): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(103,84): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(143,66): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(158,65): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(201,66): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(206,38): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/Observable.d.ts(206,50): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/observable/ForkJoinObservable.d.ts(6,50): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/observable/ForkJoinObservable.d.ts(7,58): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/observable/FromObservable.d.ts(7,38): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/observable/FromObservable.d.ts(7,51): error TS2304: Cannot find name 'Iterator'. node_modules/rxjs/observable/PromiseObservable.d.ts(9,31): error TS2304: Cannot find name 'Promise'. node_modules/rxjs/observable/PromiseObservable.d.ts(10,26): error TS2304: Cannot find name 'Promise'.

npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! node v6.2.2 npm ERR! npm v3.9.5 npm ERR! code ELIFECYCLE npm ERR! angular2-tour-of-heroes@0.0.1 start: tsc && concurrently "npm run tsc:w" "npm run lite" npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the angular2-tour-of-heroes@0.0.1 start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the angular2-tour-of-heroes package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! tsc && concurrently "npm run tsc:w" "npm run lite" npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs angular2-tour-of-heroes npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls angular2-tour-of-heroes npm ERR! There is likely additional logging output above.

johnpapa commented 7 years ago

closing since this was rewritten with the CLI