创建名为post的实体后,在我的JHipster应用程序上安装Thread失败
我已经使用命令创建名为post的实体后,在我的JHipster应用程序上安装Thread失败,jhipster,Jhipster,我已经使用命令jhipster entity post创建了一个名为post的实体,在一段时间后,我需要运行warn install来检查一些软件包更新。当我运行warn install时,我得到一个错误,如下所示 $ ngc -p tsconfig-aot.json Error encountered resolving symbol values statically. Could not resolve ng-jhipster relative to /home/nifras/Deskt
jhipster entity post
创建了一个名为post的实体,在一段时间后,我需要运行warn install
来检查一些软件包更新。当我运行warn 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是beta版,其行为与以前的yeoman方式完全不同。这里的原因是,我们进行了一些npm模块管理,比如将当前使用的JHipster的副本保存到node_模块,以确保将来的命令仍然使用相同的版本
一般来说,jhipster
命令的行为应该与yo jhipster
相同,但由于它最近发布,还有几个问题尚未解决
如果您找到一种重建问题的方法,请随时将问题发送到我们的如果您使用
yo jhipster:entity
替代它是否有效?是的,在yarn升级后,它适用于yo jhipster:entity
命令
和yo jhipster:entity