刚安装了Angular2 beta 11,npm install angular2 --save
并收到以下警告:
d:\Projects\sample>npm install angular2 --save
[email protected] d:\Projects\sample
+-- [email protected]
+-- UNMET PEER DEPENDENCY es6-promise@^3.0.2
+-- UNMET PEER DEPENDENCY es6-shim@^0.35.0
+-- UNMET PEER DEPENDENCY [email protected]
+-- UNMET PEER DEPENDENCY [email protected]
`-- UNMET PEER DEPENDENCY zone.js@^0.6.4
npm WARN [email protected] requires a peer of es6-promise@^3.0.2 but none was installed.
npm WARN [email protected] requires a peer of es6-shim@^0.35.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of zone.js@^0.6.4 but none was installed.
以前的Angular2版本es6-promise
es6-shim
rxjs
zone.js
在main中安装了依赖项,package.js
但现在没有。
"dependencies": {
"angular2": "^2.0.0-beta.11"
}
我检查了..\node_modules\angular2\package.json
,可以看到它依赖于以下软件包:
"peerDependencies": {
"es6-promise": "^3.0.2",
"es6-shim": "^0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"zone.js": "^0.6.4"
},
有什么想法吗?
看起来答案在这里https://github.com/npm/npm/issues/6565
NPM 3倍:
- 如果peerDependencies还不是依赖项或devDependency,则将不再隐式安装它们。这是最大的变化,也是最有可能需要开发人员干预的部分。
- 无效或丢失的peerDependencies将是警告而不是错误。这意味着将使开发人员可以解决有peerDependencies的不正常情况,但是peerDependency的不兼容性应减少对用户的痛苦,因为安装会因依赖关系问题而获得的援助的频率大大降低。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句