2017-06-29 10 views
0

私は、角2に初心者ですので私と一緒にクマ、私はこのコースにジム・クーパーとジョー・イームズによって 角度の基礎エラーTS2693:「地図」のみのタイプを意味し、その値として使用されている、ここで

を見ています

私は教材をダウンロードしましたが、エラーはいっぱいです。

エラーは私のプロジェクトファイルにはありません。

NPMインストール済みです。

これは

{ 
    "name": "ng2-fundamentals-demo", 
    "version": "1.0.0", 
    "scripts": { 
    "start": "tsc && concurrently \"npm run tsc:w\" \"npm run server\" ", 
    "server": "node node_modules/ng2f-server/server.js", 
    "tsc": "tsc", 
    "tsc:w": "tsc -w" 
    }, 
    "keywords": [], 
    "author": "", 
    "licenses": [ 
    { 
     "type": "MIT", 
     "url": "https://github.com/angular/angular.io/blob/master/LICENSE" 
    } 
    ], 
    "dependencies": { 
    "@angular/common": "~2.2.0", 
    "@angular/compiler": "~2.2.0", 
    "@angular/core": "~2.2.0", 
    "@angular/forms": "~2.2.0", 
    "@angular/http": "~2.2.0", 
    "@angular/platform-browser": "~2.2.0", 
    "@angular/platform-browser-dynamic": "~2.2.0", 
    "@angular/router": "~3.2.0", 
    "@angular/upgrade": "~2.2.0", 
    "systemjs": "0.19.40", 
    "core-js": "^2.4.1", 
    "reflect-metadata": "^0.1.8", 
    "rxjs": "5.0.0-beta.12", 
    "zone.js": "^0.6.26", 
    "ng2f-bootstrap": "^0.0.4", 
    "ng2f-server": "^0.2.3" 
    }, 
    "devDependencies": { 
    "concurrently": "^3.1.0", 
    "typescript": "^2.0.3", 
    "@types/core-js": "^0.9.34", 
    "@types/node": "^6.0.46" 
    }, 
    "repository": {} 
} 

そして私は、私は、ログファイルをチェックすると、これらの内容です

node_modules/@types/core-js/index.d.ts(2338,43): error TS2339: Property 'toStringTag' does not exist on type 'SymbolConstructor' 
. 
node_modules/@types/core-js/index.d.ts(2342,43): error TS2339: Property 'unscopables' does not exist on type 'SymbolConstructor' 
. 
node_modules/rxjs/Observable.d.ts(66,60): error TS2693: 'Promise' only refers to a type, but is being used as a value here. 
node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'. 
    Types of property 'lift' are incompatible. 
    Type '<T, R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observa 
ble<R>'. 
     Type 'Observable<T>' is not assignable to type 'Observable<R>'. 
     Type 'T' is not assignable to type 'R' 

を開始NPM実行したときに私が得たエラー私のpackage.jsonです:

それが正常終了した場合の情報

1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose run-script [ 'prestart', 'start', 'poststart' ] 
5 info lifecycle [email protected]~prestart: [email protected] 
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing 
7 info lifecycle [email protected]~start: [email protected] 
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 
9 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Volumes/Test/One$ 
10 verbose lifecycle [email protected]~start: CWD: /Volumes/Test/OneDrive - SE/Angular2Samples/angular-fundamentals/0$ 
11 silly lifecycle [email protected]~start: Args: [ '-c', 
11 silly lifecycle 'tsc && concurrently "npm run tsc:w" "npm run server" ' ] 
12 silly lifecycle [email protected]~start: Returned: code: 2 signal: null 
13 info lifecycle [email protected]~start: Failed to exec start script 
14 verbose stack Error: [email protected] start: `tsc && concurrently "npm run tsc:w" "npm run server" ` 
14 verbose stack Exit status 2 
14 verbose stack  at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:283:16) 
14 verbose stack  at emitTwo (events.js:106:13) 
14 verbose stack  at EventEmitter.emit (events.js:191:7) 
14 verbose stack  at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14) 
14 verbose stack  at emitTwo (events.js:106:13) 
14 verbose stack  at ChildProcess.emit (events.js:191:7) 
14 verbose stack  at maybeClose (internal/child_process.js:886:16 
14 verbose stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 
15 verbose pkgid [email protected] 
16 verbose cwd /Volumes/Test/OneDrive - SE/Angular2Samples/angular-fundamentals/01-getting-started-with-angular/getting-started$ 
17 verbose Darwin 16.6.0 
18 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 
19 verbose node v6.10.3 
20 verbose npm v5.0.2 
21 error code ELIFECYCLE 
22 error errno 2 
23 error [email protected] start: `tsc && concurrently "npm run tsc:w" "npm run server" ` 
23 error Exit status 2 
24 error Failed at the [email protected] start script. 

答えて

-5

あなたが何かを開始するときに、あなたが持っているバージョンと同じではないオブジェクトのバージョンを使用したいと思うでしょう。おそらくhereを見てください。

関連する問題