2016-08-19 17 views
2
My package json is : 
"devDependencies": { 
    "@angular/common": "2.0.0-rc.4", 
    "@angular/compiler": "2.0.0-rc.4", 
    "@angular/core": "2.0.0-rc.4", 
    "@angular/http": "2.0.0-rc.4", 
    "@angular/platform-browser": "2.0.0-rc.4", 
    "@angular/platform-browser-dynamic": "2.0.0-rc.4", 
    "@angular/router": "^3.0.0-alpha.8", 
    "autoprefixer": "^6.3.3", 
    "rxjs": "5.0.0-beta.6", 
    "selenium-standalone": "^5.1.0", 
    "style-loader": "^0.13.0", 
    "stylelint": "^6.3.2", 
    "stylelint-webpack-plugin": "^0.2.0", 
    "to-string-loader": "^1.1.3", 
    "ts-helpers": "^1.1.1", 
    "tslint": "^3.3.0", 
    "tslint-loader": "^2.1.0", 
    "typescript": "^1.8.10", 
    "typings": "^1.0.4", 
    "webpack": "^1.13.0", 
    "webpack-dev-server": "^1.14.1", 
    "webpack-hot-middleware": "^2.9.1", 
    "webpack-split-by-path": "0.1.0", 
    "zone.js": "0.6.12" 
    } 

を結ぶない:私はNPM私は次のエラーを取得するインストールないときNPMは、ピアdepencies

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

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: 
npm WARN notsup Not compatible with your operating system or architecture: [email protected] 
npm WARN @angular/[email protected] requires a peer of @angular/[email protected]^2.0.0-rc.5 but none was installed. 
npm WARN @angular/[email protected] requires a peer of @angular/[email protected]^2.0.0-rc.5 but none was installed. 
npm WARN @angular/[email protected] requires a peer of @angular/[email protected]^2.0.0-rc.5 but none was installed. 
npm WARN @angular/[email protected] requires a peer of @angular/[email protected]^2.0.0-rc.5 but none was installed. 
npm WARN @angular/[email protected] requires a peer of @angular/[email protected]^2.0.0-rc.5 but none was installed. 

私はコアライブラリに移動し、npm listをすれば、私は、次を得る:

node_modules/@angular/core$ npm list 
@angular/[email protected] 
+-- UNMET PEER DEPENDENCY [email protected] 
`-- UNMET PEER DEPENDENCY [email protected]^0.6.6 

npm ERR! peer dep missing: [email protected], required by @angular/[email protected] 
npm ERR! peer dep missing: [email protected]^0.6.6, required by @angular/[email protected] 

しかし、[email protected]β6と[email protected]^0.6.6は既にpackage.jsonごとにインストールされています。なぜnpmはこれらのライブラリを必要なライブラリにリンクしていないのですか?

答えて

0

あなたはすべてアプリケーションのデプロイメントが必要な依存関係(例:角度など)ではないことは確かですか?これらの角モジュールが依存関係にある場合でも、ピアrxjsとzonejsは依存関係にある必要があります。

関連する問題