Aurelia''typings安装时刻'失败了

use*_*058 1 momentjs aurelia typescript-typings

这很简单:通过Typings安装时刻失败:

Typings install moment --save
Run Code Online (Sandbox Code Playgroud)

在注册表中"无法找到"时刻"("npm")...'在其他帖子中有些人要说使用' - ''''这样:

Typings install --ambient moment --save
Run Code Online (Sandbox Code Playgroud)

虽然这有效,但它会破坏我的Aurelia模块ts文件.它改变

export * from '~aurelia....' 
Run Code Online (Sandbox Code Playgroud)

import alias = requires('~aurelia....') 
export = alias
Run Code Online (Sandbox Code Playgroud)

它在每个模块文件中执行此操作,这使得应用程序失败b/c它不再识别Aurelia框架模块.所以-ambient标志很糟糕,我需要通过Typings安装基本的moment.d.ts文件.

有任何想法如何让打字安装时刻?

Mat*_*vis 5

试试这个:

typings install dt~moment --global --save

有关更多信息,请参阅打字文档