2
WebstormでAngular2アプリをセットアップしようとしていて、npm installの問題が発生しました。これは、 '[email protected]'に満たないピア依存関係があるために失敗します。私は手動でインストールしようとしましたUnmetピア依存関係の原因
sudo npm install [email protected]
しかし、動作しません。これは、インストールNPMしようとしているの端子出力は次のようになります。
sudo npm install
[email protected] /home/chase/angular2-starter
├── [email protected] extraneous
└── UNMET PEER DEPENDENCY [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 [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
これは私のPackage.jsonファイルです:
{
"name": "angular2-starter",
"version": "1.0.0",
"scripts": {
"start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"@angular/forms": "0.3.0",
"@angular/http": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
"@angular/router": "3.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.5",
"angular2": "^2.0.0-beta.17",
"angular2-in-memory-web-api": "0.0.15",
"bootstrap": "^3.3.6",
"core-js": "^2.4.0",
"es6-shim": "^0.35.1",
"reflect-metadata": "^0.1.2",
"rxjs": "^5.0.0-beta.6",
"systemjs": "0.19.27",
"zone.js": "^0.6.15"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings": "^1.0.4"
}
}
任意のアイデア?ありがとう
ええ、基本的に依存関係をインストールしましたが、指定したものより新しいものです。そう、はい、キャレット(^)を削除すると特定のバージョンがインストールされ、警告は表示されません。 –
正しいです。これにより、ライブラリの現在の問題を、必要とするモジュールが予期しているものよりも新しいものに更新する必要があります。ある時点で、元のインストール(角)が新しいバージョンを使用するように更新され、キャレット(^)が返されます。 –