创建一个名为 post 的实体后,我的 JHipster 应用程序上的纱线安装失败



我使用命令创建了一个名为 post 的实体,jhipster entity post一段时间后我需要运行yarn install来检查一些包更新。当我运行yarn install时,我收到如下错误

$ ngc -p tsconfig-aot.json 
Error encountered resolving symbol values statically. Could not resolve ng-jhipster relative to /home/nifras/Desktop/hire.it.nearby/src/main/webapp/app/shared/shared-libs.module.ts., resolving symbol HireitnearbySharedLibsModule in /home/nifras/Desktop/hire.it.nearby/src/main/webapp/app/shared/shared-libs.module.ts, resolving symbol HireitnearbySharedLibsModule in /home/nifras/Desktop/hire.it.nearby/src/main/webapp/app/shared/shared-libs.module.ts, resolving symbol HireitnearbySharedLibsModule in /home/nifras/Desktop/hire.it.nearby/src/main/webapp/app/shared/shared-libs.module.ts
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
nifras@nifras:~/Desktop/hire.it.nearby$ 

为什么会这样?如何从此错误中恢复?

提前致谢

你应该

使用yo jhipster[:XXX]而不是jhipster[ XXX],因为JHipster CLI处于测试阶段,并且行为与旧的yeoman方式不完全相同。这里的原因是,我们做了一些npm模块管理,比如保存当前使用的JHipster的副本到node_modules,以确保你仍然使用相同的版本来执行未来的命令。

一般来说,jhipster命令的行为方式应该与yo jhipster相同,但由于它最近发布,有几个问题仍未解决。

如果您找到重建问题的方法,请随时将问题发送到我们的问题跟踪器

最新更新