Angular npm开始给出:找不到模块';打字核心';错误

Angular npm开始给出:找不到模块';打字核心';错误,angular,typescript,systemjs,Angular,Typescript,Systemjs,我今天一整天都在和typescript&angular2作斗争,因为我无法启动我的应用程序的开发服务器。在经历了数小时的挫折和大量的谷歌搜索之后,我终于摆脱了所有的错误,只有一个: node_modules/typings/dist/support/cli.d.ts(2,32): error TS2307: Cannot find module 'typings-core'. 有人能提供一个解决方案吗?(在网上找不到任何内容) 谢谢, 皮奥特 如果仍然失败:npm删除打字并重试这些命令。我通过

我今天一整天都在和typescript&angular2作斗争,因为我无法启动我的应用程序的开发服务器。在经历了数小时的挫折和大量的谷歌搜索之后,我终于摆脱了所有的错误,只有一个:

node_modules/typings/dist/support/cli.d.ts(2,32): error TS2307: Cannot find module 'typings-core'.
有人能提供一个解决方案吗?(在网上找不到任何内容)

谢谢, 皮奥特


如果仍然失败:
npm删除打字
并重试这些命令。

我通过将下面的代码添加到tsconfig.json中,成功地避免了错误

    "skipLibCheck": true,

当我遇到同样的错误时,这对我起了作用:

rm -rf node_modules/ typings/
npm install
typings install
rm -rf node_modules/ typings/
npm install
typings install