НЕУДОВЛЕТВОРЕНИЕ ПРОБЛЕМЫ СОВМЕСТНОЙ ЗАВИСИМОСТИ

Я пытался установить бутстрап ngx из [https://ng-bootstrap.github.io/#/getting-started]

введя команду: npm install ngx-bootstrap --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 popper.js@^1.12.3
`-- UNMET PEER DEPENDENCY [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^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/core@^4.0.3 but none was installed.
npm WARN @ng-bootstrap/[email protected] requires a peer of @angular/common@^4.0.3 but none was installed.
npm WARN @ng-bootstrap/[email protected] requires a peer of @angular/forms@^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 popper.js@^1.12.3 but none was installed.
npm WARN [email protected] requires a peer of @angular/common@>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/compiler@>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/core@>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/forms@>=4.3.0 || >5.0.0 but none was installed.
npm WARN [email protected] requires a peer of typescript@>=2.3.0 but none was installed.

Я не понимаю, что происходит.

Я новичок в Angular 2 и соответствующих технологиях. Буду признателен за вашу помощь! Спасибо.


person Cheong Ming Lun    schedule 25.11.2017    source источник


Ответы (1)


привет, вам нужно установить perDependencies, если вы устанавливаете пакет, который зависит от конкретных версий других пакетов, если он не нашел правильную версию пакета, значит «Peer dependencies» не удовлетворен, попробуйте следующее:

npm install -g npm-install-peers

npm-install-peers

это установит peerDependencies

person Fateh Mohamed    schedule 25.11.2017