我已经安装了npm包,我注意到了这个控制台日志:
UNMET PEER DEPENDENCY angular2@2.0.0-beta.14
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
npm WARN angular2-modal@0.1.4 requires a peer of angular2@2.0.0-beta.15 but none was installed.
npm WARN ng2-bootstrap@1.0.15 requires a peer of angular2@2.0.0-beta.16 but none was installed.
npm WARN angular2-quickstart@1.0.0 No repository field.
这是什么意思?
我尝试了npm install angular2,但输出相同。
package.json依赖
"dependencies": {
"@angular2-material/card": "^2.0.0-alpha.2",
"@angular2-material/checkbox": "^2.0.0-alpha.2",
"@angular2-material/core": "^2.0.0-alpha.2",
"@angular2-material/input": "^2.0.0-alpha.2",
"@angular2-material/progress-circle": "^2.0.0-alpha.2",
"@angular2-material/radio": "^2.0.0-alpha.2",
"@angular2-material/sidenav": "^2.0.0-alpha.2",
"@angular2-material/toolbar": "^2.0.0-alpha.2",
"angular2": "2.0.0-beta.14",
"angular2-modal": "^0.1.3",
"es6-shim": "^0.35.0",
"ng2-bootstrap": "^1.0.11",
"ng2-bs3-modal": "^0.5.1",
"ng2-material": "^0.3.5",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"systemjs": "0.19.25",
"zone.js": "0.6.6",
"socket.io":"1.4.5"
答案 0 :(得分:-1)
这似乎对我有用:
npm install --save rxjs@5.0.0-beta.12