在一个示例项目中,当我尝试打字时安装以下typings.js我收到警告。我们如何获得最新版本号以及+ symbole后的数字
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160725163759",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
"node": "registry:dt/node#6.0.0+20160909174046"
}
}
打字WARN于2016年10月7日弃用: “注册表:dt / node#6.0.0 + 20160909174046”已弃用(已更新, 更换或删除)打字WARN已于2016年10月4日弃用: “注册表:dt / jasmine#2.2.0 + 20160621224255”已弃用(已更新, 取消或删除)打字WARN已于2016年9月14日弃用: “注册表:dt / core-js#0.0.0 + 20160725163759”已弃用(已更新, 替换或删除)
+ - core-js(全球) + - jasmine(global)` - node(global)
答案 0 :(得分:9)
跳过版本后缀#xxxxxxx
将安装最新的版本:
{
"globalDependencies": {
"core-js": "registry:dt/core-js",
"jasmine": "registry:dt/jasmine",
"node": "registry:dt/node"
}
}
使用typings info dt~<package> --version
查找dt包的版本:
> typings info dt~node --versions
TAG VERSION DESCRIPTION COMPILER LOCATION UPDATED
6.0.0+20161006230116 6.0.0 github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#38f26299ffa6ed4898e1dad4936b4ac6c6c66096 2016-10-06T23:01:16.000Z
0.12.0+20160906152630 0.12.0 github:DefinitelyTyped/DefinitelyTyped/node/node-0.12.d.ts#03f3ca4333161dea8c5fa0ba47d55b02da92d40d 2016-09-06T15:26:30.000Z
0.11.13+20160906152630 0.11.13 github:DefinitelyTyped/DefinitelyTyped/node/node-0.11.d.ts#03f3ca4333161dea8c5fa0ba47d55b02da92d40d 2016-09-06T15:26:30.000Z
0.10.1+20160906152630 0.10.1 github:DefinitelyTyped/DefinitelyTyped/node/node-0.10.d.ts#03f3ca4333161dea8c5fa0ba47d55b02da92d40d 2016-09-06T15:26:30.000Z
0.8.8+20160906152630 0.8.8 github:DefinitelyTyped/DefinitelyTyped/node/node-0.8.8.d.ts#03f3ca4333161dea8c5fa0ba47d55b02da92d40d 2016-09-06T15:26:30.000Z