我试图安装导致此警告的依赖项:
npm WARN angular2-in-memory-web-api@0.0.12 requires a peer of @angular/core@2.0.0-rc.2 but none was installed.
npm WARN angular2-in-memory-web-api@0.0.12 requires a peer of @angular/http@2.0.0-rc.2 but none was installed.
然后我尝试手动安装@angular/core@2.0.0-rc.2
,所以我使用了:
npm install -g @angular/core@2.0.0-rc.2
这也导致了
npm WARN @angular/core@2.0.0-rc.2 requires a peer of rxjs@5.0.0-beta.6 but none was installed.
npm WARN @angular/core@2.0.0-rc.2 requires a peer of zone.js@^0.6.6 but none was installed.
然后我用
npm install -g rxjs@5.0.0-beta.6
npm install -g zone.js@^0.6.6
没有发出任何警告。然后我再次安装@angular/core@2.0.0-rc.2
,但它像以前一样发出警告,就像那两个模块根本没有安装一样。有没有人遇到过similliar问题?
造成这种情况的原因是什么?我试图把它包裹起来,但找不到解决方案,有没有办法解决它?
感谢您的帮助。