私はangular2-cool-storage
とngx-webstorage
をインストールしようとしましたが、UNMET PEER DEPENDENCY
エラーが発生します。セッションストレージとローカルストレージを扱うライブラリをインストールします。 私は、端末私はあなたが管理する依存関係を超えるチェックする必要があると思うUnmetピア依存関係
[email protected] d:\q2\Qabess-Web-App
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
`-- [email protected]
`-- UNMET PEER DEPENDENCY [email protected]^0.8.4
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 [email protected] requires a peer of
@angular/[email protected]^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of
@angular/[email protected]^4.0.0 but none was installed.
npm WARN @angular/[email protected] requires a peer of [email protected]^0.8.4 but none
was installed.
package.json
{
"name": "CoreUI",
"version": "1.0.0-alpha.4",
"description": "Open Source Bootstrap Admin Template",
"author": "",
"url": "http://coreui.io",
"copyright": "Copyright 2017 creativeLabs Łukasz Holeczek",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/common": "^2.4.8",
"@angular/compiler": "^2.4.8",
"@angular/core": "^2.4.8",
"@angular/forms": "^2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/router": "3.4.8",
"@angular/upgrade": "2.4.8",
"angular-2-local-storage": "^1.0.1",
"angular2-cookie": "^1.2.6",
"angular2-cool-storage": "^3.1.0",
"chart.js": "2.5.0",
"core-js": "2.4.1",
"moment": "2.17.1",
"ng2-bootstrap": "1.3.3",
"ng2-charts": "1.5.0",
"ngx-webstorage": "^1.8.0",
"rxjs": "^5.2.0",
"sha256": "^0.2.0",
"ts-helpers": "1.1.2",
"zone.js": "0.7.7"
},
"devDependencies": {
"@angular/cli": "1.0.0-rc.0",
"@angular/compiler-cli": "2.4.8",
"@types/jasmine": "2.5.43",
"@types/node": "7.0.5",
"codelyzer": "2.0.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.5.0",
"karma-chrome-launcher": "2.0.0",
"karma-cli": "1.0.1",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"karma-coverage-istanbul-reporter": "0.2.3",
"protractor": "5.1.1",
"ts-node": "2.1.0",
"tslint": "4.5.0",
"typescript": "2.2.1" }
}
問題がありますか?私はあなたがそれを残すことができる警告だと思います。そうでなければこのガイドに従ってくださいhttps://stackoverflow.com/questions/35738346/how-to-solve-npm-unmet-peer-dependency?rq=1 – CharanRoot
それは 'UNMET PEER DEPENDENCY [email protected]^0.8.4'あなたのpackage.jsonを見ると、あなたは0.7.7しか使用していないと定義しています – SaxyPandaBear