所以我克隆了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.
如何修复此问题以便我可以构建?
答案 0 :(得分:5)
由于这是一个Angular项目,在克隆jhipster-registry项目之后,你需要:
yarn install
(安装所有依赖项)或npm install
,具体取决于您使用的工具./mvnw
另一种解决方案:
java -Djhipster.security.authentication.jwt.secret=xxxx -jar jhipster-registry-3.0.1.war