【发布时间】:2021-02-05 03:27:29
【问题描述】:
我正在尝试在 Windows 10 localhost 上安装到 Wiki.js。执行 node server
时出现以下错误(node:11360) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of null
at Object.init (C:\wiki\server\core\db.js:35:37)
at Object.init (C:\wiki\server\core\kernel.js:13:35)
at Object. (C:\wiki\server\index.js:35:13)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
(node:11360) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11360) [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.
我有以下内容: 节点版本 v12.16.1 npm 版本 6.13.4 MySQL Ver 15.1 Distrib 10.4.11-MariaDB,适用于 Win64 (AMD64),源修订版 7c2c420b70b19cc02b5281127205e876f3919dad
感谢任何帮助
【问题讨论】:
-
您是否尝试按照文档docs.requarks.io/install/windows进行安装
-
是的。我按照提到的步骤,仍然没有运气。
标签: javascript node.js wiki.js