为什么在trapi中启动stradi时会显示错误

时间:2019-02-27 08:39:03

标签: angular angular6 angular7 strapi

为什么在表之间创建实现后停止tradi并在stradi在stradi中启动时变成错误显示

   (node:1264) UnhandledPromiseRejectionWarning: Error: SQLITE_ERROR: table `tmp_posts` already exists
    at Client_SQLite3._query (F:\angular7\Server\BlogApi\node_modules\knex\lib\dialects\sqlite3\index.js:108:12)
    at Client_SQLite3.query (F:\angular7\Server\BlogApi\node_modules\knex\lib\client.js:192:17)
    at Runner.<anonymous> (F:\angular7\Server\BlogApi\node_modules\knex\lib\runner.js:138:36)
From previous event:
    at F:\angular7\Server\BlogApi\node_modules\knex\lib\runner.js:47:21
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
    at process.topLevelDomainCallback (domain.js:121:23)
From previous event:
    at Runner.run (F:\angular7\Server\BlogApi\node_modules\knex\lib\runner.js:33:30)
    at Raw.Target.then (F:\angular7\Server\BlogApi\node_modules\knex\lib\interface.js:23:43)
(node:1264) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1264) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[2019-02-28T06:28:21.235Z] debug ⛔️ Server wasn't able to start properly.
[2019-02-28T06:28:21.247Z] error (hook:bookshelf) takes too long to load
(hook:bookshelf) takes too long to load

1 个答案:

答案 0 :(得分:0)

有时,当我重命名Type时,我得到了SQLITE_ERROR: table `xyz` already exists。尝试将其恢复为初始名称或删除它,然后从内容管理器中重新创建它。