angular2 quickstart npm安装失败

Smi*_*tha 9 node.js exitstatus angular

当我尝试运行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.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

Sha*_*nak 13

确保已typings安装包.

npm install -g typings

还要确保您有typings.json可用的文件.

您可以从Angular2团队学习本教程.