我刚刚从rc-6升级到角2最终版。我已经在beta/rc版本中多次升级而没有问题。npm install抱怨已经遇到的未满足的同级代理
我在我的package.json DEPS是:
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/compiler-cli": "0.6.0",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/platform-server": "2.0.0",
"@angular/router": "3.0.0",
"@angular/upgrade": "2.0.0",
"angular2-cookie": "1.2.3",
"bootstrap-sass": "3.3.6",
"chart.js": "2.1.6",
"core-js": "^2.4.1",
"highlight.js": "9.5.0",
"marked": "0.3.5",
"ng2-bootstrap": "1.1.1",
"ng2-charts": "1.2.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.12",
"zone.js": "^0.6.23"
}
这符合什么是对目前(截至发稿时)angular 2 setup page。
运行NPM安装将安装一切,但我在最后得到了一堆错误:
219946 error code EPEERINVALID
219947 error peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
219947 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0
219947 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0
219947 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0
219947 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0
219947 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0
219947 error peerinvalid Peer [email protected] wants @angular/[email protected]
219947 error peerinvalid Peer [email protected] wants @angular/[email protected]
219948 verbose exit [ 1, true ]
正如你可以在我的package.json看到,我在@角/常见@ 2.0。 0,并且没有比当前可用的版本更高的版本。目前的设置确实是而不是推荐使用^2.0.0
,但我试过了,无济于事。
我也尝试过在我的整个node_modules目录下,同时在其他任何地方安装@ angular/common,都没有成功。我是愚蠢的还是还有其他事情在这里?