jhipster - 仅创建前端

问题描述 投票:0回答:1

我正在尝试生成一个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:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-environment\lib\environment.js:157:40)
    at module.exports.error (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\generators\generator-base.js:1488:18)
    at module.exports.validateSkipServer (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\generators\client\index.js:159:26)
    at Object.<anonymous> (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:418:27)
    at C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\run-async\index.js:25:25
    at new Promise (<anonymous>)
    at C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\run-async\index.js:24:19
    at self.env.runLoop.add.completed (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:419:13)
    at processImmediate (timers.js:637:19)
Emitted 'error' event at:
    at Immediate.setImmediate (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:427:22)
    at processImmediate (timers.js:637:19)

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

generator jhipster yo
1个回答
0
投票

我刚试过--db sql, 然后在webpack.common.js中更改路径SERVER_API_URL:工作正常。 所以这个密钥说明你的后端有什么数据库,是的,它让人感到困惑。

© www.soinside.com 2019 - 2024. All rights reserved.