npm WARN依赖关系
我必须将我的primeng版本更新到最新版本,它是:1.0.0-rc.2我在下面的package.json之前使用,它工作正常:
{
"name": "primeng",
"version": "1.0.0-SNAPSHOT",
"scripts": {
"postinstall": "npm run typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrently "npm run tsc:w" "npm run lite" ",
"typings": "typings"
},
"license": "ISC",
"dependencies": {
"angular2": "2.0.0-beta.15",
"client-http": "0.0.7",
"systemjs": "0.19.25",
"es6-shim": "^0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"zone.js": "0.6.10",
"primeng": "1.0.0-beta.3",
"primeui": "4.1.8"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.1.0",
"typescript": "^1.8.9",
"typings": "^0.7.9"
}
}
更新我的primeng版本到最新版本,我还添加了一些新的依赖关系。 更新后,我的package.json如下所示:
{
"name": "primeng",
"version": "1.0.0-rc.2",
"scripts": {
"postinstall": "npm run typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrently "npm run tsc:w" "npm run lite" ",
"typings": "typings"
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.0.2",
"@angular/compiler": "~2.0.1",
"@angular/core": "2.0.1",
"@angular/forms": "~2.0.1",
"@angular/http": "2.0.2",
"@angular/platform-browser": "2.0.2",
"@angular/platform-browser-dynamic": "~2.0.1",
"@angular/router": "~3.0.1",
"@angular/upgrade": "~2.0.1",
"angular-in-memory-web-api": "~0.1.1",
"angular2": "2.0.0-beta.15",
"client-http": "0.0.7",
"systemjs": "0.19.25",
"es6-shim": "^0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"zone.js": "0.6.10",
"primeng": "1.0.0-rc.2",
"primeui": "4.1.8"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.1.0",
"typescript": "^1.8.9",
"typings": "^0.7.9"
}
}
安装npm之后,我在控制台中看到一些WARN-s。
npm WARN @angular/common@2.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN @angular/compiler@2.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN @angular/core@2.0.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/core@2.0.1 requires a peer of zone.js@^0.6.21 but none was installed.
npm WARN @angular/forms@2.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN @angular/http@2.0.2 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/http@2.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN @angular/platform-browser@2.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN @angular/router@3.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN @angular/router@3.0.2 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/router-deprecated@2.0.0-rc.1 requires a peer of @angular/core@2.0.0-rc.1 but none was installed.
npm WARN @angular/router-deprecated@2.0.0-rc.1 requires a peer of @angular/common@2.0.0-rc.1 but none was installed.
npm WARN @angular/router-deprecated@2.0.0-rc.1 requires a peer of @angular/platform-browser@2.0.0-rc.1 but none was installed.
npm WARN @angular/upgrade@2.0.2 requires a peer of @angular/core@2.0.2 but none was installed.
npm WARN angular-in-memory-web-api@0.1.14 requires a peer of reflect-metadata@~0.1.8 but none was installed.
npm WARN angular-in-memory-web-api@0.1.14 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN angular-in-memory-web-api@0.1.14 requires a peer of zone.js@^0.6.26 but none was installed.
npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of @angular/core@2.0.0-rc.1 but none was installed.
npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of @angular/http@2.0.0-rc.1 but none was installed.
npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of reflect-metadata@^0.1.3 but none was installed.
npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of rxjs@5.0.0-beta.6 but none was installed.
npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of zone.js@^0.6.12 but none was installed.
npm WARN ng2-http-client@0.2.0 requires a peer of rxjs@^5.0.0-beta.12 but none was installed.
npm WARN ng2-http-client@0.2.0 requires a peer of zone.js@^0.6.25 but none was installed.
npm WARN ng2-http-client@0.2.0 requires a peer of reflect-metadata@^0.1.8 but none was installed.
npm WARN primeng@1.0.0-rc.2 No repository field.
我如何解决这个问题? 如果我正在更改库版本,则会收到其他WARN-s冲突
链接地址: http://www.djcxy.com/p/27685.html下一篇: How to update forked repo as dependency during npm install?