JHipster Entity Generator crahing

2019-07-09 02:12发布

I have my first JHIpster app running in Docker. Would now like to create an Entity.

Running

yo jhipster:entity event

gives the error below.

I dont know enough to even sart de-bugging? Can I refresh something?

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
2条回答
唯我独甜
2楼-- · 2019-07-09 03:00

this error implied some kind of corruption of JHipster and or node. Re-installing node and JHipster did not help me, but building a new Docker image worked fine.

查看更多
叼着烟拽天下
3楼-- · 2019-07-09 03:01

Please delete jhipster and yo from your user and reinstall those from root. this will work 100% tasted too many times

查看更多
登录 后发表回答