在 ngconf2015demo 上执行 tsc 时出错 - 缺少 tsd.d.ts

Error executing tsc on ngconf2015demo - missing tsd.d.ts

尝试在 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"
    }
  }
}

因此,当我根据演示设置步骤 tsc 尝试执行下一个命令时,出现此错误:

C:\...> tsc
error TS6053: File 'typings/tsd.d.ts' not found.

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

a.) 请更新 tsd npm update tsd -g.

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

tsd reinstall -so