我有一个Angular项目,我开始使用随机启动项目。我们团队中的某个人试图克隆回购,当他们进行npm安装时,应用程序无法构建,并且出现以下错误:
npm WARN @angular/router@3.2.0 requires a peer of @angular/upgrade@2.2.0 but none was installed.
npm WARN codelyzer@1.0.0-beta.3 requires a peer of @angular/compiler@~2.1.1 but none was installed.
npm WARN codelyzer@1.0.0-beta.3 requires a peer of @angular/core@~2.1.1 but none was installed.
npm WARN app@0.0.0 No repository field.
它说角度路由器需要角度2.2.0。所以我手动安装角度2.2.0然后我得到以下错误:
npm WARN codelyzer@1.0.0-beta.3 requires a peer of @angular/compiler@~2.1.1 but none was installed.
npm WARN codelyzer@1.0.0-beta.3 requires a peer of @angular/core@~2.1.1 but none was installed.
现在,codelyzer重新获取我刚升级的角度版本。我可以轻松地进入入门项目并更新我的文件,但这不会帮助我学习如何解决这个问题。
当你修复一个问题只导致另一个问题时,如何纠正似乎是循环依赖问题?