jhipster-仅创建前端

时间:2019-04-04 06:42:40

标签: generator jhipster yo

我正在尝试生成一个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)

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

1 个答案:

答案 0 :(得分:0)

我刚刚尝试了--db sql,
然后在webpack.common.js SERVER_API_URL中更改路径: 工作正常。
因此,该密钥说明了您的后端上有什么数据库,是的,这很令人困惑。