尝试在windows上用visual studio 2015rc设置angular2,然后按照TodoMVC application demo for ng-conf 2015的说明,我到达了tsd reinstall生成以下输出的点:

c:\...>tsd reinstall
>> tsd 0.5.7
-> running reinstall
>> written 1 file:
    - angular2/angular2.d.ts

它创建typings文件夹,但其中唯一的东西是上面的angular2/angular2.d.ts
tsd.json的内容是:
{
  "version": "v4",
  "repo": "borisyankov/DefinitelyTyped",
  "ref": "master",
  "path": "typings",
  "bundle": "typings/tsd.d.ts",
  "installed": {
    "angular2/angular2.d.ts": {
      "commit": "b3834d886a95789e6ab56e8244775ec10c5293d0"
    }
  }
}

因此,当我尝试执行下一个命令时,根据demo setup stepstsc,我会得到以下错误:
C:\...> tsc
error TS6053: File 'typings/tsd.d.ts' not found.

我做错了什么,导致文件不在预期的位置?

最佳答案

更新tsd请npm update tsd -g
b.)要重新安装并保存到ts d.d.ts,您需要使用save选项:https://github.com/DefinitelyTyped/tsd#reinstall-definitions
tsd reinstall -so

08-08 03:58