Angular 2 polyfills麻烦

所以我有一个硬盘故障,失去了一切,但当然github救援。 我最近完成了我的第一个Angular 2项目,并做了一个git克隆来恢复它,每次我尝试运行服务器我得到这个错误…

ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property 'newLine' of undefined at Object.getNewLineCharacter (D:\GitHub\sandbox\meadowbrook_acres\angular-src\node_modules\typescript\lib\typescript.js:8062:20) at Object.createCompilerHost (D:\GitHub\sandbox\meadowbrook_acres\angular-src\node_modules\typescript\lib\typescript.js:44978:26) at Object.ngcLoader (D:\GitHub\sandbox\meadowbrook_acres\angular-src\node_modules\@ngtools\webpack\src\loader.js:338:33) @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts

./src/polyfills.ts中的错误模块构build失败:TypeError:无法读取Object.getNewLineCharacter(D:\ GitHub \ sandbox \ meadowbrook_acres \ angular-src \ node_modules \ typescript \ lib \ typescript.js)中未定义的属性'newLine' (D:\ GitHub \ sandbox \ meadowbrook_acres):8062:20)在Object.createCompilerHost(D:\ GitHub \ sandbox \ meadowbrook_acres \ angular-src \ node_modules \ typescript \ lib \ typescript.js:44978:26) \ angular-src \ node_modules \ @ngtools \ webpack \ src \ loader.js:338:33)@ multi。/​​ src / polyfills.ts`

我做了一个npm安装在项目文件夹和angular度的src文件夹,然后做了一个npm安装typings –global之后谷歌search这个错误,仍然不允许我做任何事情。 任何其他的想法,我可以做什么?