question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular2-GettingStarted/APM - Start/systemjs.config.js

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xzatechcommented, Jan 11, 2017

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”,

"angular-in-memory-web-api": "~0.2.4",
"systemjs": "0.19.40",
"core-js": "^2.4.1",
"rxjs": "5.0.1",
"zone.js": "^0.7.4"

}, “devDependencies”: { “concurrently”: “^3.1.0”, “lite-server”: “^2.2.2”, “typescript”: “~2.0.10”,

"canonical-path": "0.0.2",
"http-server": "^0.9.0",
"tslint": "^3.15.1",
"lodash": "^4.16.4",
"jasmine-core": "~2.4.1",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~4.0.14",
"rimraf": "^2.5.4",

"@types/node": "^6.0.46",
"@types/jasmine": "^2.5.36"

}, “repository”: {} }

0reactions
xzatechcommented, Jan 12, 2017

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:

Thank You very much, Deborah, you are awesome. I will keep in mind the version of Angular in mind hopefully it does not affect. I going Forward… funny thing is Im learning this in order to learn Ionic2 …thumbs Up!

On Wed, Jan 11, 2017 at 5:45 PM, Deborah Kurata notifications@github.com wrote:

Closed #34 https://github.com/DeborahK/Angular2-GettingStarted/issues/34.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DeborahK/Angular2-GettingStarted/issues/34#event-919914966, or mute the thread https://github.com/notifications/unsubscribe-auth/APcj9hHLiauX8SezBv9c6T_PJEFFK81Lks5rRVttgaJpZM4LhIq6 .



Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular2-GettingStarted/APM - Start/systemjs.config.js · Issue #34 ...
I had an issue with npm start off your files , they would not find the following: :~/apm$ sudo npm start [sudo] password...
Read more >
Chapter 2. Getting started with Angular - liveBook · Manning
In this chapter, we'll start discussing how you develop Angular applications using modern tools and web technologies like annotations, ES6 modules, ...
Read more >
Angular 2 - Getting Started - MicroPyramid
I'm gonna introduce you the basics of Angular 2 and all the setup process in this blog for your basic understanding. As we...
Read more >
Building Angular 2 Demos With System.js And TypeScript
So, I'm going to try and get my new Angular 2 demos done with ... I then configure System.js to point to "/vendor/angularjs-2-beta/rc1/"...
Read more >
gulp - Angular2 "Getting Started" deployment with SystemJS - Stack ...
Hi @Mitchell, just 2 questions regarding your code; 1) shouldn´t you remove the import for app.config.js in your HTML and use app.js instead?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found