看过其他帖子,但那里建议的解决方案都没有奏效。所以即使我排除了整个typings
文件夹,我仍然会看到这些重复的标识符错误。文件夹与文件夹typings
在同一级别node_modules
bower_components
这是Angular 2建议的我的typings.json:
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}
我需要做什么?:(
PS:我卸载了 1.8.6 版 Visual Studio 的 TypeScript,只使用了 1.8.10 版的 npm typescript。以前,它们一起安装在我的机器上,但仍然无法正常工作。