Angularjs 打字安装特定版本的定义文件

Angularjs 打字安装特定版本的定义文件,angularjs,typescript,Angularjs,Typescript,我是打字新手。我想在我的应用程序中安装特定版本的角度定义文件 使用TSD我可以使用以下命令 tsd install angular -v "1.4.0" -rso 由于,TSD已被弃用,因此我转而使用typings来自动安装定义文件 我的问题是,使用打字,我可以安装特定版本的角度定义文件吗?如果是这样的话,打字中的命令是什么 更新: 我尝试了下面的命令,但它们不起作用 typings install angular@1.4.0 及 错误消息如下所示: $ typings install an

我是打字新手。我想在我的应用程序中安装特定版本的角度定义文件

使用
TSD
我可以使用以下命令

tsd install angular -v "1.4.0" -rso
由于,
TSD
已被弃用,因此我转而使用
typings
来自动安装定义文件

我的问题是,使用
打字
,我可以安装特定版本的角度定义文件吗?如果是这样的话,
打字中的命令是什么

更新:

我尝试了下面的命令,但它们不起作用

typings install angular@1.4.0

错误消息如下所示:

$ typings install angular@1.4.0 --ambient
typings ERR! message Unable to find "angular" for "dt" in the registry. Did you want to install ambient typings with the ambient flag? If you can contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/dt/angular/versions/1.4.0/latest responded with 404, expected it to equal 200

typings ERR! cwd /Users/idolezalova/projects/wfm
typings ERR! system Darwin 15.4.0
typings ERR! command "/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/node" "/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/typings" "install" "angular@1.4.0" "--ambient"
typings ERR! node -v v4.3.1
typings ERR! typings -v 0.7.12

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>
$typings安装angular@1.4.0--环境的
打字错误!消息在注册表中找不到“dt”的“angular”。是否要安装带有环境标志的环境打字?如果您能提供这些打字,请帮助我们:https://github.com/typings/registry
打字错误!引起https://api.typings.org/entries/dt/angular/versions/1.4.0/latest 回答为404,预计等于200
打字错误!cwd/Users/idolezalova/projects/wfm
打字错误!达尔文系统15.4.0
打字错误!命令“/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/node”“/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/typings”“安装”angular@1.4.0“--环境”
打字错误!节点-v4.3.1
打字错误!打字-v 0.7.12
打字错误!如果需要帮助,您可以在以下位置报告此错误:
打字错误!
来自帮助:

$ typings install -h

typings install (with no arguments, in package directory)
typings install <pkg>[@<version>] [ --source [dt | npm | github | bower | common | shared | lib | env | global] ]
typings install file:<path>
typings install github:<github username>/<github project>[/<path>][#<commit>]
typings install bitbucket:<bitbucket username>/<bitbucket project>[/<path>][#<commit>]
typings install <http:// url>

Aliases: i, in
Options: [--name] [--save|--save-dev] [--ambient] [--production]

@嗯,我明白了。嗯,这似乎是一个bug,我会在GitHub上报告它作为一个问题。我会说问题在于的DT存储库。版本1.4在名为legacy的文件夹中,打字可能不知道如何处理它。报告为错误
$ typings install -h

typings install (with no arguments, in package directory)
typings install <pkg>[@<version>] [ --source [dt | npm | github | bower | common | shared | lib | env | global] ]
typings install file:<path>
typings install github:<github username>/<github project>[/<path>][#<commit>]
typings install bitbucket:<bitbucket username>/<bitbucket project>[/<path>][#<commit>]
typings install <http:// url>

Aliases: i, in
Options: [--name] [--save|--save-dev] [--ambient] [--production]
typings install angular@1.4.0 --ambient