Node.js 将角度2升级到角度4失败

Node.js 将角度2升级到角度4失败,node.js,angular,angular-upgrade,Node.js,Angular,Angular Upgrade,我从角度2升级到角度4,现在我得到一个错误。我把课文抄了下来 i、 e npm安装@angular/common@latest@棱角/compiler@latest@angular/compiler-cli@latest@棱角/core@latest@棱角/forms@latest@棱角/http@latest@角度/平台-browser@latest@角度/平台浏览器-dynamic@latest@角度/平台-server@latest@棱角/router@latest@棱角/animatio

我从角度2升级到角度4,现在我得到一个错误。我把课文抄了下来 i、 e

npm安装@angular/common@latest@棱角/compiler@latest@angular/compiler-cli@latest@棱角/core@latest@棱角/forms@latest@棱角/http@latest@角度/平台-browser@latest@角度/平台浏览器-dynamic@latest@角度/平台-server@latest@棱角/router@latest@棱角/animations@latest typescript@latest--保存

现在我在运行npm start时遇到此错误,请协助

`

产品-management@1.0.0启动C:\Users\dp9\Documents\Visual Studio 2015\Projects\NG\NG UI

tsc&同时“tsc-w”“lite服务器”

node_modules/@types/node/index.d.ts(70,5):错误TS2403:后续变量声明必须具有相同的类型。变量“main”的类型必须为“any”,但此处的类型为“NodeModule”

node_modules/@types/node/index.d.ts(81,5):错误TS2403:后续变量声明必须具有相同的类型。变量“parent”的类型必须为“any”,但此处的类型为“NodeModule”

node_modules/@types/node/index.d.ts(82,5):错误TS2403:后续变量声明必须具有相同的类型。变量“children”的类型必须为“any[]”,但此处的类型为“NodeModule[]”

node_modules/@types/node/index.d.ts(102,6):错误TS2300:重复标识符“BufferEncoding”

node_modules/@types/node/index.d.ts(263,18):错误TS2300:重复标识符“EventEmitter”

node_modules/@types/node/index.d.ts(371,9):错误TS2403:后续变量声明必须具有相同的类型。变量“stdout”的类型必须为“WritableStream”,但此处的类型为“WriteStream”

node_modules/@types/node/index.d.ts(372,9):错误TS2403:后续变量声明必须具有相同的类型。变量“stderr”的类型必须为“WritableStream”,但此处的类型为“WriteStream”

node_modules/@types/node/index.d.ts(373,9):错误TS2403:后续变量声明必须具有相同的类型。变量“stdin”的类型必须为“ReadableStream”,但此处的类型为“ReadStream”

node_modules/@types/node/index.d.ts(422,9):错误TS2403:后续变量声明必须具有相同的类型。变量“platform”的类型必须为“string”,但此处的类型为“platform”

node_modules/@types/node/index.d.ts(580,26):错误TS2300:重复标识符“Buffer”

node_modules/@types/node/index.d.ts(580,50):错误TS2300:重复标识符“SlowBuffer”

node_modules/@types/node/index.d.ts(604,22):错误TS2415:类“EventEmitter”错误地扩展了基类“internal”。 属性“EventName”的类型不兼容。 类型“()=>(字符串|符号)[]”不能分配给类型“()=>string[]”。 类型“(字符串|符号)[]”不可分配给类型“字符串[]”

node_modules/@types/node/index.d.ts(624,5):错误TS2309:导出分配不能在具有其他导出元素的模块中使用

node_modules/@types/node/index.d.ts(769,18):错误TS2300:重复标识符“Agent”

node_modules/@types/node/index.d.ts(824,9):错误TS2403:后续变量声明必须具有相同的类型。变量“addressType”的类型必须为“string”,但此处的类型为“number |“udp4”|“udp6”

节点\模块/@types/node/index.d.ts(827,18):错误TS2300:重复标识符“Worker”

node_modules/@types/node/index.d.ts(1510,17):错误TS2300:重复标识符“CompleterResult”

node_modules/@types/node/index.d.ts(1547,18):错误TS2300:重复标识符“Script”

node_modules/@types/node/index.d.ts(2911,18):错误TS2300:重复标识符“TLSSocket”

node_modules/@types/node/index.d.ts(3108,9):错误TS2403:后续变量声明必须具有相同的类型。变量“pfx”的类型必须为“any”,但此处的类型为“string | Buffer[]”

node_modules/@types/node/index.d.ts(3109,9):错误TS2403:后续变量声明必须具有相同的类型。变量“key”的类型必须为“any”,但此处的类型为“string | any[]| string[]| Buffer”

node_modules/@types/node/index.d.ts(3111,9):错误TS2403:后续变量声明必须具有相同的类型。变量“cert”的类型必须为“any”,但此处的类型为“string | string[]| Buffer | Buffer[]”

node_modules/@types/node/index.d.ts(3112,9):错误TS2403:后续变量声明必须具有相同的类型。变量“ca”的类型必须为“any”,但此处的类型为“string | string[]| Buffer | Buffer[]”

node_modules/@types/node/index.d.ts(3113,9):错误TS2403:后续变量声明必须具有相同的类型。变量“crl”的类型必须为“any”,但此处的类型为“string | string[]”

node_modules/@types/node/index.d.ts(3115,9):错误TS2403:后续变量声明必须具有相同的类型。变量“honorCipherOrder”必须为“any”类型,但此处的类型为“boolean”

node_modules/@types/node/index.d.ts(3118,9):错误TS2403:后续变量声明必须具有相同的类型。变量“NPNProtocols”的类型必须为“any”,但此处的类型为“string[]| Buffer”

node_modules/@types/node/index.d.ts(3135,9):错误TS2403:后续变量声明必须具有相同的类型。变量“key”的类型必须为“string | Buffer”,但此处的类型为“string | string[]| Buffer | Buffer[]”

node_modules/@types/node/index.d.ts(3137,9):错误TS2403:后续变量声明必须具有相同的类型。变量“cert”的类型必须为“string | Buffer”,但此处的类型为“string | string[]| Buffer | Buffer[]”

node_modules/@types/node/index.d.ts(3138,9):错误TS2403:后续变量声明必须具有相同的类型。变量“ca”必须为ty
npm uninstall --save typings
npm install @angular/{animations,common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router}@4.0.0 typescript@latest --save
 npm install @angular/common@next @angular/compiler@next @angular/compiler-cli@next @angular/core@next @angular/forms@next @angular/http@next @angular/platform-browser@next @angular/platform-browser-dynamic@next @angular/platform-server@next @angular/router@next @angular/animations@next --save
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest