2016-12-06 69 views
0

有誰告訴我爲什麼NPM是讓我這個消息時,我執行npm installAngular2:未滿足PEER DEPENDENCY [email protected]

+-- @angular/[email protected] 
+-- @angular/[email protected] 
+-- @angular/[email protected] 
+-- @angular/[email protected] 
+-- @types/[email protected] 
+-- UNMET PEER DEPENDENCY [email protected] 
| `-- [email protected] 
`-- [email protected] 

什麼UNMET PEER DEPENDENCY

packages.json內容是:

{ 
... 
"dependencies": { 
    "@angular/common": "^2.2.4", 
    "@angular/core": "^2.2.4", 
    "@angular/http": "^2.2.4", 
    "@angular/platform-browser": "^2.2.4", 
    "rxjs": "^5.0.0-beta.12", 
    "zone.js": "^0.6.21" 
} 
} 

爲什麼npm試圖解決[email protected],而不是[email protected]

回答

2

這裏是一個工作package.json

{ 
    ... 
    "dependencies": { 
    "@angular/common": "^2.2.4", 
    "@angular/core": "^2.2.4", 
    "@angular/http": "^2.2.4", 
    "@angular/platform-browser": "^2.2.4", 
    "rxjs": "5.0.0-beta.12", 
    "zone.js": "^0.6.21" 
    } 
} 

只是刪除^

相關問題