JHipster JDL 不生成任何东西,因为必须传递数据库类型

JHipster JDL not generating anything because the database type must be passed

我正在使用 Jhipster 4.5.3 从我创建的 JDL 文件中生成一些代码。因为我无法生成任何东西,所以我选择了 JDL Blog sample... 我遇到了同样的问题。

JDL documentation还提到:

You can generate entities from a JDL file by running jhipster import-jdl your-jdl-file.jh

但是当我这样做时,我得到:

The jdl is being parsed. { name: 'NullPointerException', message: 'The parsed JDL content and the database type must be passed.',

at the code, it looks like we have to pass a new parameter, the database type (this is not mentioned in the doc BTW). Looking at the code again,有相当多的数据库类型可供选择。但是我选择的任何数据库,我都会得到

Error: Could not find postgresql, make sure the path is correct!

at Environment.error (/Users/agoncal/.config/yarn/global/node_modules/yeoman-environment/lib/environment.js:89:38)
at jdlFiles.forEach (/Users/agoncal/.config/yarn/global/node_modules/generator-jhipster/generators/import-jdl/index.js:42:34)
at Array.forEach (native)
at constructor.validate (/Users/agoncal/.config/yarn/global/node_modules/generator-jhipster/generators/import-jdl/index.js:40:31)
at Object.<anonymous> (/Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/lib/index.js:417:23)
at /Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/node_modules/run-async/index.js:25:25
at Promise (<anonymous>)
at /Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/node_modules/run-async/index.js:24:19
at /Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/lib/index.js:418:9
at runCallback (timers.js:800:20)

有什么想法吗?

您是否首先使用 'yo jhipster' 生成了一个应用程序?你能 post 生成的 .yo-rc.json 吗?