我有一段时间后使用jhipster entity post
命令创建一个名为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$
为什么会这样?如何从此错误中恢复?
提前致谢
答案 0 :(得分:0)
您应该使用Error occurred in request., SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",)
Traceback (most recent call last):
File "/usr/bin/azure-cli/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
cmd_result = APPLICATION.execute(args)
File "/usr/bin/azure-cli/lib/python2.7/site-packages/azure/cli/core/application.py", line 210, in execute
result = expanded_arg.func(params)
File "/usr/bin/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 289, in __call__
return self.handler(*args, **kwargs)
File "/usr/bin/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 498, in _execute_command
raise client_exception
ClientRequestError: Error occurred in request., SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",)
而不是yo jhipster[:XXX]
,因为JHipster CLI处于测试阶段,并且不像旧的自耕农那样行事。这里的原因是,我们进行了一些npm模块管理,比如将当前使用的JHipster的副本保存到node_modules,以确保您将来仍然使用相同的版本进行命令。
一般来说,jhipster[ XXX]
命令的行为应该与jhipster
相同,但是最近发布时,仍有几个问题尚未解决。
如果您找到重建问题的方法,请随时向我们的Issue Tracker发送问题