jHipster注册表无法编译角度依赖项

时间:2017-06-06 00:03:58

标签: angular jhipster

所以我克隆了jHipster注册表,但收到了以下警告:

npm WARN angular2-cookie@1.2.6 requires a peer of @angular/common@^2.0.0 but none was installed.
npm WARN angular2-cookie@1.2.6 requires a peer of @angular/core@^2.0.0 but none was installed.
npm WARN ng2-translate@4.2.0 requires a peer of @angular/core@^2.0.0 but none was installed.
npm WARN ng2-translate@4.2.0 requires a peer of @angular/http@^2.0.0 but none was installed.

如何修复此问题以便我可以构建?

1 个答案:

答案 0 :(得分:5)

由于这是一个Angular项目,在克隆jhipster-registry项目之后,你需要:

  • yarn install(安装所有依赖项)或npm install,具体取决于您使用的工具
  • 然后您可以启动注册表:./mvnw

另一种解决方案: