Angular2-GettingStarted/APM - Start/systemjs.config.js
See original GitHub issueI had an issue with npm start off your files , they would not find the following:
:~/apm$ sudo npm start [sudo] password for ralix:
product-management@1.0.0 start /home/ralix/apm tsc && concurrently “tsc -w” “lite-server”
node_modules/@angular/common/src/directives/ng_class.d.ts(48,34): error TS2304: Cannot find name ‘Set’. node_modules/@angular/common/src/pipes/async_pipe.d.ts(44,38): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/aot/compiler.d.ts(32,38): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/aot/compiler.d.ts(44,32): error TS2304: Cannot find name ‘Map’. node_modules/@angular/compiler/src/aot/compiler_host.d.ts(20,33): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/compile_metadata.d.ts(342,20): error TS2304: Cannot find name ‘Set’. node_modules/@angular/compiler/src/compile_metadata.d.ts(344,28): error TS2304: Cannot find name ‘Set’. node_modules/@angular/compiler/src/compile_metadata.d.ts(346,15): error TS2304: Cannot find name ‘Set’. node_modules/@angular/compiler/src/compile_metadata.d.ts(348,23): error TS2304: Cannot find name ‘Set’. node_modules/@angular/compiler/src/compile_metadata.d.ts(350,17): error TS2304: Cannot find name ‘Set’. node_modules/@angular/compiler/src/compile_metadata.d.ts(352,25): error TS2304: Cannot find name ‘Set’. node_modules/@angular/compiler/src/directive_normalizer.d.ts(38,72): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/directive_normalizer.d.ts(40,74): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/i18n/extractor.d.ts(14,33): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/i18n/extractor.d.ts(22,35): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/jit/compiler.d.ts(44,49): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/jit/compiler.d.ts(46,65): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/metadata_resolver.d.ts(58,104): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/output/output_ast.d.ts(433,63): error TS2304: Cannot find name ‘Set’. node_modules/@angular/compiler/src/resource_loader.d.ts(13,23): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/util.d.ts(33,18): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/compiler/src/util.d.ts(34,46): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/application_init.d.ts(16,18): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/application_ref.d.ts(116,67): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/application_ref.d.ts(132,101): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/application_ref.d.ts(158,67): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/application_ref.d.ts(160,101): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(24,15): error TS2304: Cannot find name ‘Map’. node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(28,16): error TS2304: Cannot find name ‘Map’. node_modules/@angular/core/src/di/reflective_provider.d.ts(88,123): error TS2304: Cannot find name ‘Map’. node_modules/@angular/core/src/di/reflective_provider.d.ts(88,165): error TS2304: Cannot find name ‘Map’. node_modules/@angular/core/src/facade/lang.d.ts(12,17): error TS2304: Cannot find name ‘Map’. node_modules/@angular/core/src/facade/lang.d.ts(13,17): error TS2304: Cannot find name ‘Set’. node_modules/@angular/core/src/linker/compiler.d.ts(53,49): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/linker/compiler.d.ts(61,65): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/linker/ng_module_factory_loader.d.ts(14,34): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/linker/system_js_ng_module_factory_loader.d.ts(28,25): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/core/src/util/lang.d.ts(8,53): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/platform-browser-dynamic/src/resource_loader/resource_loader_impl.d.ts(10,23): error TS2304: Cannot find name ‘Promise’. node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(79,33): error TS2304: Cannot find name ‘Map’. node_modules/@angular/platform-browser/src/dom/dom_adapter.d.ts(97,42): error TS2304: Cannot find name ‘Map’. node_modules/@angular/platform-browser/src/dom/dom_renderer.d.ts(22,37): error TS2304: Cannot find name ‘Map’. node_modules/rxjs/Observable.d.ts(68,60): error TS2304: Cannot find name ‘Promise’. node_modules/rxjs/Observable.d.ts(68,70): error TS2304: Cannot find name ‘Promise’.
npm ERR! Linux 4.8.0-34-generic
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
npm ERR! node v6.9.2
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! product-management@1.0.0 start: tsc && concurrently "tsc -w" "lite-server"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the product-management@1.0.0 start script 'tsc && concurrently “tsc -w” “lite-server” '.
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 product-management package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc && concurrently “tsc -w” “lite-server”
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs product-management
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls product-management
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ralix/apm/npm-debug.log
Untill I loaded the quick-start file and then it worked. as well as the package.json file
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top GitHub Comments
I resolved the issue replacing the package.json. I do not know what exactly is the cause but I just double checked and simply replacing that file makes it work. I will continue now with the course
I’m pretty sure it something to do with this here: npm ERR! Linux 4.8.0-34-generic npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” npm ERR! node v6.9.2 npm ERR! npm v4.0.5 npm ERR! code ELIFECYCLE npm ERR! product-management@1.0.0 postinstall:
typings install
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the product-management@1.0.0 postinstall script ‘typings install’.{ “name”: “angular-quickstart”, “version”: “1.0.0”, “description”: “QuickStart package.json from the documentation, supplemented with testing support”, “scripts”: { “start”: "tsc && concurrently "tsc -w" "lite-server" ", “e2e”: “tsc && concurrently "http-server -s" "protractor protractor.config.js" --kill-others --success first”, “lint”: “tslint ./app/**/*.ts -t verbose”, “lite”: “lite-server”, “pree2e”: “webdriver-manager update”, “test”: “tsc && concurrently "tsc -w" "karma start karma.conf.js"”, “test-once”: “tsc && karma start karma.conf.js --single-run”, “tsc”: “tsc”, “tsc:w”: “tsc -w” }, “keywords”: [], “author”: “”, “license”: “MIT”, “dependencies”: { “@angular/common”: “~2.4.0”, “@angular/compiler”: “~2.4.0”, “@angular/core”: “~2.4.0”, “@angular/forms”: “~2.4.0”, “@angular/http”: “~2.4.0”, “@angular/platform-browser”: “~2.4.0”, “@angular/platform-browser-dynamic”: “~2.4.0”, “@angular/router”: “~3.4.0”,
}, “devDependencies”: { “concurrently”: “^3.1.0”, “lite-server”: “^2.2.2”, “typescript”: “~2.0.10”,
}, “repository”: {} }
FYI: FYI the only other issue I had was with the npm install reflect-metadata npm install bootstrap@3.
On Wed, Jan 11, 2017 at 6:28 PM, Rafael Alix xzatech@gmail.com wrote:
–