2016-10-18 39 views
0

このチュートリアルの後にはenter link description hereがありますが、12:41に固まってしまいました。私は、ビデオの説明にリンク以下のシードプロジェクトをダウンロードし、Windows 7の管理者としてsomman npm installを発行した。しかし、私は次のエラーを取得しています:npmインストールでエラーが発生して失敗します

C:\development\angular2\angular2-seed>npm install 

> [email protected] postinstall C:\development\angular2\angular2-seed 
> typings install 

(I translated following lines to English) 
typings is not name of an command, executable or batch. 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\ch 
okidar\node_modules\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] 
1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64" 
}) 
npm WARN [email protected] No description 
npm WARN [email protected] No repository field. 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\A 
ppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v4.6.0 
npm ERR! npm v3.10.8 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] postinstall: `typings install` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'typings ins 
tall'. 
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-quickstart p 
ackage, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  typings install 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs angular2-quickstart 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls angular2-quickstart 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\development\angular2\angular2-seed\npm-debug.log 

お知らせください。ありがとうございました。

EDIT: 添付ファイルNPM-debug.logに:enter link description here 添付ファイルpackage.json:enter link description here

+0

package.jsonファイルを添付してください。 –

+0

seedプロジェクトは、非常に古いAngular2バージョン '' 2.0.0-beta.7 ''を使用しています。このクイックスタートの記事を参照することをお勧めします。https://angular.io/docs/ts/latest/quickstart.html – Sanket

+0

@ParveenSachdeva私の質問にnpm-debug.logを付けました。ありがとう。 – Vojtech

答えて

3

アクセス許可の問題。おそらく、ウィンドウ内のパス名と関係しているはずです。

Git BashまたはWindows Powershellで同じものを確認してください。 set NODE_PATH=source

node_modulesを削除し、再npm installを実行します。

はあなたのようなNODEパスを設定することができます。

+0

私はGit Bashを管理者として使用し、環境変数NODE_PATHを設定し、node_modulesを削除しましたが、残念ながら問題は残っています。ありがとうございました。 – Vojtech

+0

package.jsonファイルを表示してください。これを簡単にデバッグするのに役立ちます。 – Anistark

+0

添付、私の質問の編集を見てください。ありがとうございました。 – Vojtech

関連する問題