{
"name": "angular2-quickstart",
"version": "1.0.0",
"scripts": {
"start": "tsc && 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.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/http": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router": "2.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.1",
"@angular/upgrade": "2.0.0-rc.1",
"es6-shim": "^0.33.3",
"font-awesome": "^4.6.1",
"jquery": "^2.2.3",
"lodash": "^4.13.1",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.6",
"systemjs": "^0.19.29",
"zone.js": "^0.6.12"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings":"^1.0.4"
}
}
npm ERR! Windows_NT 6.1.7601 错误的ERR! argv“C:\ Program Files \ nodejs \\ node.exe”“C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js”“install” 错误的ERR!节点v0.12.0 错误的ERR! npm v2.5.1 错误的ERR!代码EPEERINVALID
npm ERR! peerinvalid包reflect-metadata不满足其兄弟姐妹的peerDependencies要求! 错误的ERR! peerinvalid Peer angular2-in-memory-web-api@0.0.11想要reflect-metadata@^0.1.3 错误的ERR! peerinvalid Peer angular2@2.0.0-beta.6想要reflect-metadata@0.1.2
答案 0 :(得分:0)
更新到Node.JS v6.9 +和NPM v3.x,并如上所述将reflect-metadata更新为0.1.3。
答案 1 :(得分:0)
您描述的错误发生,因为尽管您安装了angular2-in-memory-web-api软件包,但该软件包指定它需要特定版本的另一个软件包才能正常运行。虽然上述软件包已经通过您的角度安装进行了安装,但它不是该软件包指定的版本。
使用npm update
,您可以尝试将所有软件包更新为最新版本,包括不良依赖性。