【发布时间】:2016-03-07 07:13:11
【问题描述】:
从主分支中提取最新的commit。 跑下面命令参考官方contribution guide
npm install
tsc --noImplicitAny .\mongoose\mongoose-tests.ts
但这会产生许多错误,例如
error TS1005: ';' expected.
error TS1006: Identifier expected; 'this' is a keyword.
error TS1008: Unexpected token; 'module, class, interface, enum, import or statement' expected.
error TS1003: Identifier expected.
error TS1005: '=>' expected.
在运行 youtube 包定义测试时也会显示类似的错误。 我做错了什么?
【问题讨论】:
标签: node.js typescript npm-install definitelytyped