未满足PEER DEPENDENCY ISSUE
问题描述:
我一直在试图通过输入以下命令来安装从[https://ng-bootstrap.github.io/#/getting-started]未满足PEER DEPENDENCY ISSUE
的NGX引导:NPM安装NGX-引导--save
但结果是这样的:
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY [email protected] - 3
+-- [email protected]
+-- UNMET PEER DEPENDENCY [email protected]^1.12.3
`-- UNMET PEER DEPENDENCY [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @ng-bootstrap/[email protected] requires a peer of @angular/[email protected]^4.0.3 but none was installed.
npm WARN @ng-bootstrap/[email protected] requires a peer of @angular/[email protected]^4.0.3 but none was installed.
npm WARN @ng-bootstrap/[email protected] requires a peer of @angular/[email protected]^4.0.3 but none was installed.
npm WARN [email protected] requires a peer of [email protected] - 3 but none was installed.
npm WARN [email protected] requires a peer of [email protected]^1.12.3 but none was installed.
npm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/[email protected]>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected]>=2.3.0 but none was installed.
我不明白发生了什么事。
我对Angular 2和相关技术相当陌生。将不胜感激您的帮助!谢谢。
答
你好,你需要安装你的perDependencies,如果你安装的是依赖于其他包的特定版本的包,如果没有找到包的正确版本,那么“同伴依赖”是未得到满足的,试试这个:
npm install -g npm-install-peers
npm-install-peers
这会安装peerDependencies