仅创建前端



我正在尝试生成一个 jhipster 应用程序,但我只想要前端....我正在运行的命令是

jhipster --skip-server --auth jwt

我得到的错误

events.js:173
      throw er; // Unhandled 'error' event
      ^
Error: ERROR! When using skip-server flag, you must pass a database option and authentication type using --db and --auth flags
    at Environment.error (C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipsternode_modulesyeoman-environmentlibenvironment.js:157:40)
    at module.exports.error (C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipstergeneratorsgenerator-base.js:1488:18)
    at module.exports.validateSkipServer (C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipstergeneratorsclientindex.js:159:26)
    at Object.<anonymous> (C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipsternode_modulesyeoman-generatorlibindex.js:418:27)
    at C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipsternode_modulesrun-asyncindex.js:25:25
    at new Promise (<anonymous>)
    at C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipsternode_modulesrun-asyncindex.js:24:19
    at self.env.runLoop.add.completed (C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipsternode_modulesyeoman-generatorlibindex.js:419:13)
    at processImmediate (timers.js:637:19)
Emitted 'error' event at:
    at Immediate.setImmediate (C:UsersAppDataRoamingnpmnode_modulesgenerator-jhipsternode_modulesyeoman-generatorlibindex.js:427:22)
    at processImmediate (timers.js:637:19)

但我根本不想要数据库,我只需要一个漂亮的前端应用程序

我刚刚尝试了 --db sql,
然后在 webpack.common.js SERVER_API_URL 中更改了路径:工作正常。
所以这个键说明了后端的数据库是什么,是的,这很令人困惑。

相关内容

  • 没有找到相关文章

最新更新