2016-04-29 14 views
-3

angle2 5分クイックスタートをhttps://angular.io/guide/quickstartから試しました。すべてのファイルはコピー&貼り付けによって作成されました。なぜなら、私は怠け者であり、フォールトの可能性があるからです。私はTypeScriptバージョンを好みました。最後に、私はコンパイルし、 "npm start"で始める必要があります。私はこれを管理者として行います。私のOSはWindows 10です。 開始後、いくつかのエラーが発生します。これはnpm-debug.logです:Angularjs 2クイックスタート - Npmランエラー

0 info it worked if it ends with ok 
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe', 
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 
1 verbose cli 'start' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose node symlink C:\Program Files\nodejs\\node.exe 
5 verbose run-script [ 'prestart', 'start', 'poststart' ] 
6 info prestart [email protected] 
7 info start [email protected] 
8 verbose unsafe-perm in lifecycle true 
9 info [email protected] Failed to exec start script 
10 verbose stack Error: [email protected] start: `tsc && concurrently "npm run tsc:w" "npm run lite" ` 
10 verbose stack Exit status 2 
10 verbose stack  at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16) 
10 verbose stack  at EventEmitter.emit (events.js:110:17) 
10 verbose stack  at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14) 
10 verbose stack  at ChildProcess.emit (events.js:110:17) 
10 verbose stack  at maybeClose (child_process.js:1015:16) 
10 verbose stack  at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 
11 verbose pkgid [email protected] 
12 verbose cwd C:\web\angular2-quickstart 
13 error Windows_NT 6.3.9600 
14 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 
15 error node v0.12.3 
16 error npm v2.9.1 
17 error code ELIFECYCLE 
18 error [email protected] start: `tsc && concurrently "npm run tsc:w" "npm run lite" ` 
18 error Exit status 2 
19 error Failed at the [email protected] start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '. 
19 error This is most likely a problem with the angular2-quickstart package, 
19 error not with npm itself. 
19 error Tell the author that this fails on your system: 
19 error  tsc && concurrently "npm run tsc:w" "npm run lite" 
19 error You can get their info via: 
19 error  npm owner ls angular2-quickstart 
19 error There is likely additional logging output above. 
20 verbose exit [ 1, true ] 

クイックスタートアプリの起動を手伝ってもらえますか? Firefoxでindex.htmlを開始しようとしましたが(.tsファイルはすべて.jsファイルに変換されるため)、何も起こりません。

+0

これを試してくださいhttp://stackoverflow.com/questions/34335340/angular2-quickstart-npm-start-is-not-working-correctly/36790628#36790628 – vineet

+1

@clsahはい、その質問のリンクに沿って正しくインストールされていることを確認してくださいノード、同時に、およびliteサーバー、およびtypescript。 –

答えて

0

申し訳ありませんが、私のせいです。ファイルapp.component.tsは空でした。私はそれを正しい内容で満たし、「npm startを実行する」と動作します。ライトブラウザが起動し、「私の最初の角2アプリ」が表示され、私の終わりまで幸せになるでしょう。

関連する問題