10

npm install を実行しようとすると、次のエラーが表示されます。以下のようなエラー:

npm ERR! node v0.12.12
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-quickstart@1.0.0 postinstall script 'typings ins
tall'.
npm ERR! This is most likely a problem with the angular2-quickstart package,
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 their info via:
npm ERR!     npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.

これを解決するにはどうすればよいですか?

4

4 に答える 4

13

typingsパッケージがインストールされていることを確認してください。

npm install -g typings

また、typings.jsonファイルが使用可能であることを確認してください。

Angular2 チームのこのチュートリアルに従うことができます。

于 2016-03-29T06:06:19.563 に答える
0

私は企業のプロキシの背後にいます。以下の内容でファイル .typingsrc を作成して、アプリケーションのルートフォルダーに配置しようとしました

{
"proxy":"http://proxy-server:8080",
"rejectUnauthorized": false
}

それは最終的に働いた..

于 2016-10-13T22:29:55.950 に答える