2017-11-09 2 views
4

내가 5 각도로 각도 4에서 업그레이드 순간에있어 예를 들어, 그 후 약간의 경고를받은 : 이것은 내 package.json입니다NPM 피어 종속성

npm WARN @angular/[email protected] requires a peer of [email protected]>=2.4.2 <2.5 but none is installed. You must install peer dependencies yourself. 
npm WARN @covalent/[email protected] requires a peer of @angular/[email protected]^4.4.3 but none is installed. You must install peer dependencies yourself. 
npm WARN @covalent/[email protected] requires a peer of @angular/[email protected]^4.4.3 but none is installed. You must install peer dependencies yourself. 
npm WARN @covalent/[email protected] requires a peer of @angular/[email protected]^4.4.3 but none is installed. You must install peer dependencies yourself. 
npm WARN @covalent/[email protected] requires a peer of @angular/[email protected]^4.4.3 but none is installed. You must install peer dependencies yourself. 
npm WARN @covalent/[email protected] requires a peer of @angular/[email protected]^4.4.3 but none is installed. You must install peer dependencies yourself. 
npm WARN @covalent/[email protected] requires a peer of @angular/[email protected]^2.0.0-beta.12 but none is installed. You must install peer dependencies yourself. 
npm WARN @covalent/[email protected] requires a peer of @angular/[email protected]^2.0.0-beta.12 but none is installed. You must install peer dependencies yourself. 

{ 
    "name": "myAngularProject", 
    "version": "0.0.0", 
    "license": "MIT", 
    "scripts": { 
    "ng": "ng", 
    "start": "ng serve", 
    "build": "ng build", 
    "test": "ng test", 
    "lint": "ng lint", 
    "e2e": "ng e2e" 
    }, 
    "private": true, 
    "dependencies": { 
    "@angular/animations": "^5.0.0", 
    "@angular/cdk": "^5.0.0-rc0", 
    "@angular/common": "^5.0.0", 
    "@angular/compiler": "^5.0.0", 
    "@angular/core": "^5.0.0", 
    "@angular/forms": "^5.0.0", 
    "@angular/http": "^5.0.0", 
    "@angular/material": "^5.0.0-rc0", 
    "@angular/platform-browser": "^5.0.0", 
    "@angular/platform-browser-dynamic": "^5.0.0", 
    "@angular/router": "^5.0.0", 
    "@covalent/core": "^1.0.0-beta.8-1", 
    "@ng-dynamic-forms/core": "^1.4.34", 
    "@ng-dynamic-forms/ui-material": "^1.4.34", 
    "ag-grid": "^13.3.1", 
    "ag-grid-angular": "^13.3.0", 
    "angular-in-memory-web-api": "^0.3.2", 
    "core-js": "^2.5.1", 
    "ng2-dnd": "^4.2.0", 
    "rxjs": "^5.5.2", 
    "webpack": "^3.8.1", 
    "zone.js": "^0.8.18" 
    }, 
    "devDependencies": { 
    "@angular/cli": "^1.5.0", 
    "@angular/compiler-cli": "^5.0.0", 
    "@types/jasmine": "2.5.38", 
    "@types/node": "^6.0.90", 
    "codelyzer": "~2.0.0", 
    "install-peers": "^1.0.2", 
    "jasmine-core": "~2.5.2", 
    "jasmine-spec-reporter": "~3.2.0", 
    "karma": "~1.4.1", 
    "karma-chrome-launcher": "~2.0.0", 
    "karma-cli": "~1.0.1", 
    "karma-coverage-istanbul-reporter": "^0.2.0", 
    "karma-jasmine": "~1.1.0", 
    "karma-jasmine-html-reporter": "^0.2.2", 
    "protractor": "~5.1.0", 
    "ts-node": "~2.0.0", 
    "tslint": "~4.5.0", 
    "typescript": "^2.3.4" 
    }, 
} 

내 질문은 이제 어떻게 피어 종속성을 수동으로 추가 할 수 있습니까? 자동으로 추가하는 방법을 찾았지만 작동하지 않습니다.

답변

2

참고 : 당신은 자신을 어떤 피어 종속성을 추가 할 필요가 없습니다

. 이 메시지는 당신에게 충족되지 않은 의존성이 있다는 것을 보여줄 뿐이며, 나는 경고이기 때문에 무언가가 깨지지 않는 한 당신이 @ 패키지의 사용을 계속할 수 있다고 믿는다.

@covalent@angular4에 따라 다르며 호환되지 않는 패키지로 보입니다. angular4와 angular5에서 몇 가지 주요 변경 사항이 있으므로 이것은 예상되는 행동입니다. 당신은 두 가지 옵션이 이제 정확하게 있습니다

  1. 하는 상기 repository에 PR 제출을, 그래서 당신은 최대한 빨리 수정을 얻을 수 있습니다.
  2. @angular5에 대한 업데이트를 @covalent에서 기다렸다가 일단 업데이트가 종료되면 @angular4@covalent도 안전하게 업데이트 할 수 있습니다.