Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JHipster实体生成器crahing_Jhipster - Fatal编程技术网

JHipster实体生成器crahing

JHipster实体生成器crahing,jhipster,Jhipster,我在Docker中运行了我的第一个JHIpster应用程序。现在要创建一个实体 运行 yo jhipster:实体事件 给出下面的错误 我知道的还不够多,连窃听器都没有?我可以刷新一下吗 jhipster@fbc619c7539d:~/app$ yo jhipster:entity event ? ========================================================================== We're constantly looking

我在Docker中运行了我的第一个JHIpster应用程序。现在要创建一个实体

运行

yo jhipster:实体事件

给出下面的错误

我知道的还不够多,连窃听器都没有?我可以刷新一下吗

jhipster@fbc619c7539d:~/app$ yo jhipster:entity event
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== (Y/n)

/usr/lib/node_modules/yo/node_modules/rx-lite/rx.lite.js:75
    throw e;
    ^

SyntaxError: Invalid regular expression: /.{1,0}/: numbers out of order in {} quantifier.
    at new RegExp (native)
    at breakLines (/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/utils/screen-manager.js:108:15)
    at ScreenManager.render (/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/utils/screen-manager.js:55:22)
    at Prompt.render (/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/prompts/confirm.js:85:15)
    at Prompt._run (/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/prompts/confirm.js:65:8)
    at Prompt.run (/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/prompts/base.js:57:8)
    at Object.<anonymous> (/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/ui/prompt.js:84:12)
    at module.exports (/usr/lib/node_modules/yo/node_modules/run-async/index.js:15:21)
    at AnonymousObservable.__subscribe (/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/utils/utils.js:16:7)
    at AnonymousObservable.tryCatcher (/usr/lib/node_modules/yo/node_modules/rx-lite/rx.lite.js:63:31)
jhipster@fbc619c7539d:~/app$yo jhipster:实体事件
? ==========================================================================
我们一直在寻找让你变得更好的方法!
我们是否可以匿名报告使用统计数据,以便随着时间的推移改进该工具?
更多信息:https://github.com/yeoman/insight & http://yeoman.io
===================================================================================================================(是/否)
/usr/lib/node_modules/yo/node_modules/rx-lite/rx.lite.js:75
投掷e;
^
SyntaxError:无效的正则表达式:/.{1,0}/:{}量词中的数字顺序错误。
在新的RegExp(本机)
在特征线(/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/utils/screen manager.js:108:15)
在ScreenManager.render(/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/utils/screen manager.js:55:22)
在Prompt.render(/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/prompts/confirm.js:85:15)
在提示符处运行(/usr/lib/node\u modules/yo/node\u modules/insight/node\u modules/inquirer/lib/prompts/confirm.js:65:8)
在Prompt.run(/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/prompts/base.js:57:8)
反对。(/usr/lib/node_modules/yo/node_modules/insight/node_modules/inquirer/lib/ui/prompt.js:84:12)
在module.exports(/usr/lib/node_modules/yo/node_modules/run async/index.js:15:21)
匿名订阅(/usr/lib/node\u modules/yo/node\u modules/insight/node\u modules/inquirer/lib/utils/utils.js:16:7)
在AnonymousObservable.tryCatcher(/usr/lib/node_modules/yo/node_modules/rx-lite/rx.lite.js:63:31)

此错误意味着JHipster和/或节点的某种损坏。重新安装node和JHipster对我没有帮助,但构建新的Docker映像效果很好。

请从用户中删除JHipster和yo,然后从root重新安装。这将100%工作过多次

请提供有关您运行环境的信息
yo jhipster:info
yo jhipster:info给了我相同的错误。这说明有些东西被破坏了。所以我重新安装从头开始,它的工作良好。谢谢你的小费,盖尔,这对我以后会有帮助的。