2017-03-08 6 views
1

私は過去2〜3日間パッケージの依存関係に苦労していましたが、私の目標はangular2-busyを使用することですが、私はより大きな全体的な問題を抱えています。@ angle/common @ 2.4.9を含むいくつかの未対応のピア依存関係のエラー

npm list」を実行すると、UNMET PEER DEPENDENCYメッセージが表示されます。

私はそれをクリーンアップを開始したいとの最初のエントリは:

"UNMET PEER DEPENDENCY @angular/[email protected]" 

Iは角/共通@再インストールしようとしたが、それは何の違いも行っていない、誰かが実際に何を私に説明することができここで問題を解決することができます。

ありがとうございました。

{ 
    "name": "angular-quickstart", 
    "version": "1.0.0", 
    "description": "QuickStart package.json from the documentation, supplemented with testing support", 
    "scripts": { 
    "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", 
    "lint": "tslint ./app/**/*.ts -t verbose", 
    "lite": "lite-server", 
    "pree2e": "webdriver-manager update", 
    "test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"", 
    "test-once": "tsc && karma start karma.conf.js --single-run", 
    "tsc": "tsc", 
    "tsc:w": "tsc -w" 
    }, 
    "keywords": [], 
    "author": "", 
    "license": "MIT", 
    "dependencies": { 
    "@angular/common": "~2.4.4", 
    "@angular/compiler": "~2.4.4", 
    "@angular/core": "~2.4.4", 
    "@angular/forms": "~2.4.4", 
    "@angular/http": "~2.4.4", 
    "@angular/platform-browser": "~2.4.4", 
    "@angular/platform-browser-dynamic": "~2.4.4", 
    "@angular/router": "~3.4.4", 
    "angular-in-memory-web-api": "~0.2.2", 
    "angular2-busy": "^1.0.2", 
    "angular2-datatable": "^0.5.2", 
    "bootstrap": "^3.3.7", 
    "core-js": "^2.4.1", 
    "lodash": "^4.17.4", 
    "ng2-filter-pipe": "^0.1.6", 
    "ng2-toasty": "^2.3.0", 
    "reflect-metadata": "^0.1.8", 
    "rxjs": "5.0.1", 
    "systemjs": "0.19.40", 
    "zone.js": "^0.7.6" 
    }, 
    "devDependencies": { 
    "@types/jasmine": "2.5.36", 
    "@types/lodash": "ts2.0", 
    "@types/node": "^7.0.4", 
    "canonical-path": "0.0.2", 
    "concurrently": "^3.1.0", 
    "gulp": "^3.9.1", 
    "http-server": "^0.9.0", 
    "jasmine-core": "~2.4.1", 
    "karma": "^1.4.0", 
    "karma-chrome-launcher": "^2.0.0", 
    "karma-cli": "^1.0.1", 
    "karma-jasmine": "^1.0.2", 
    "karma-jasmine-html-reporter": "^0.2.2", 
    "lite-server": "^2.2.2", 
    "lodash": "^4.16.4", 
    "protractor": "~4.0.14", 
    "rimraf": "^2.5.4", 
    "tslint": "^3.15.1", 
    "typescript": "~2.0.10" 
    }, 
    "repository": {} 
} 
+0

は、あなたの質問にあなたのpackage.jsonをしてください追加することはできますか? – ssougnez

+0

完了。私のpackage.jsonを質問に追加しました。 – Yozki

+0

まあ、予想よりも低いバージョンのバージョンを持っているので、2.4.4で2.4.4、3.4.4で3.4.4、npmでインストールしてみてください。 – ssougnez

答えて

2

あなたは何をしようとしていますか?

npm listは、インストールされたパッケージの一覧です。何もインストール/アップデートされません。

npm cache clean 
npm install 
npm update 

を、すべてが動作します:

あなたは私があなたのpackage.jsonをコピーして、これらのコマンドラインを実行しているnpm installまたはnpm update

行う必要があります!

のバージョンは、このコマンドの使用をインストールするにはnpm-check-updates

を使用しようとする依存関係を確認するには:

npm install -g npm-check-updates 

した後、コマンドライン実行ncuからインストールし、パッケージの最新版であるかを確認しますが。

最新バージョンへの更新このようなあなたのpackage.json見た後、この記事Node and npm Version Numbering: Guide and Best Practices

NPMチェックにバージョン番号に関するもう一つ:

{ 
    "name": "angular-quickstart", 
    "version": "1.0.0", 
    "description": "QuickStart package.json from the documentation, supplemented with testing support", 
    "scripts": { 
    "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", 
    "lint": "tslint ./app/**/*.ts -t verbose", 
    "lite": "lite-server", 
    "pree2e": "webdriver-manager update", 
    "test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"", 
    "test-once": "tsc && karma start karma.conf.js --single-run", 
    "tsc": "tsc", 
    "tsc:w": "tsc -w" 
    }, 
    "keywords": [], 
    "author": "", 
    "license": "MIT", 
    "dependencies": { 
    "@angular/common": "~2.4.4", 
    "@angular/compiler": "~2.4.4", 
    "@angular/core": "~2.4.4", 
    "@angular/forms": "~2.4.4", 
    "@angular/http": "~2.4.4", 
    "@angular/platform-browser": "~2.4.4", 
    "@angular/platform-browser-dynamic": "~2.4.4", 
    "@angular/router": "~3.4.4", 
    "angular-in-memory-web-api": "~0.3.1", 
    "angular2-busy": "^1.0.2", 
    "angular2-datatable": "^0.5.2", 
    "bootstrap": "^3.3.7", 
    "core-js": "^2.4.1", 
    "lodash": "^4.17.4", 
    "ng2-filter-pipe": "^0.1.6", 
    "ng2-toasty": "^2.3.0", 
    "reflect-metadata": "^0.1.8", 
    "rxjs": "5.2.0", 
    "systemjs": "0.20.9", 
    "zone.js": "^0.8.0" 
    }, 
    "devDependencies": { 
    "@types/jasmine": "2.5.45", 
    "@types/lodash": "ts2.0", 
    "@types/node": "^7.0.4", 
    "canonical-path": "0.0.2", 
    "concurrently": "^3.1.0", 
    "gulp": "^3.9.1", 
    "http-server": "^0.9.0", 
    "jasmine-core": "~2.5.2", 
    "karma": "^1.4.0", 
    "karma-chrome-launcher": "^2.0.0", 
    "karma-cli": "^1.0.1", 
    "karma-jasmine": "^1.0.2", 
    "karma-jasmine-html-reporter": "^0.2.2", 
    "lite-server": "^2.2.2", 
    "lodash": "^4.16.4", 
    "protractor": "~5.1.1", 
    "rimraf": "^2.5.4", 
    "tslint": "^4.5.1", 
    "typescript": "~2.2.1" 
    }, 
    "repository": {} 
} 
関連する問題