答案 0 :(得分:0)
你可以重写你的package.json,如下所示,我正在获取相同的警告并重写package.json解决了它:
npm WARN angular2@2.0.0-beta.17 requires a peer of es6-shim@^0.35.0 but none was installed.
package.json:“es6-shim”:“^ 0.35.0”,
npm WARN angular2@2.0.0-beta.17 requires a peer of reflect-metadata@0.1.2
package.json:“reflect-metadata”:“0.1.2”,
npm WARN angular2@2.0.0-beta.17 requires a peer of rxjs@5.0.0beta.6
package.json:“rxjs”:“5.0.0beta.6”,
npm WARN angular2@2.0.0-beta.17 requires a peer of zone.js@0.6.12
package.json:“zone.js”:“0.6.12”,
Delete node_modules directory
npm install