编译节点应用程序时出错 – variables'Promise'必须是'any'types,但是这里有'PromiseConstructor'

我正在运行“tsc”,并得到以下错误

typings/browser/ambient/es6-shim/index.d.ts(554,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'any', but here has type 'PromiseConstructor'. typings/globals/require/index.d.ts(367,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'Require'. 

typings.json

 { "ambientDependencies": { "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654", "jasmine": "registry:dt/jasmine#2.2.0+20160412134438" }, "dependencies": { "requirejs": "registry:npm/requirejs#2.2.0+20160319062357" } } 

packages.json

  "dependencies": { "@angular/common": "2.0.0-rc.1", "@angular/compiler": "2.0.0-rc.1", "@angular/core": "2.0.0-rc.1", "@angular/http": "2.0.0-rc.1", "@angular/platform-browser": "2.0.0-rc.1", "@angular/platform-browser-dynamic": "2.0.0-rc.1", "@angular/router": "2.0.0-rc.1", "@angular/router-deprecated": "2.0.0-rc.1", "@angular/upgrade": "2.0.0-rc.1", "angular2-in-memory-web-api": "0.0.7", "bootstrap": "^3.3.6", "es6-shim": "^0.35.0", "express": "^4.13.4", "promise": "^7.1.1", "reflect-metadata": "^0.1.3", "request": "^2.72.0", "rxjs": "5.0.0-beta.6", "systemjs": "0.19.27", "xml2js": "^0.4.16", "zone.js": "^0.6.12" }, 

我能够通过字面编辑和修改它所抱怨的内容来解决这个问题,但是我相信这是一个解决方法,而不是正确的修复

types/浏览器/环境/ es6-shim / index.d.ts行554使其键入任何types/ globals / require / index.d.ts行367使其typesNodeRequire