gpt4 book ai didi

javascript - Windows Localhost 中的 Wiki.js 安装

转载 作者:行者123 更新时间:2023-12-05 06:59:04 26 4
gpt4 key购买 nike

我正在尝试在 Windows 10 本地主机上安装 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.

我有以下内容: Node 版本 v12.16.1npm 版本 6.13.4MySQL Ver 15.1 Distrib 10.4.11-MariaDB,适用于 Win64 (AMD64),源版本 7c2c420b70b19cc02b5281127205e876f3919dad

感谢任何帮助

最佳答案

这是访问您的数据库的密码问题。

at Object.init (/home/kamla/wiki/server/core/db.js:35:37)

如果您不想为默认根用户分配密码,我建议您创建一个带密码的新用户。请遵循 MySQL 指南:

[https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql-fr][1]

您可以对另一个 DBMS 执行相同的过程。然后在 config.yml 中重做您的配置。

当你离开 pass: 行时没有密码,你会得到这个错误:

2021-03-16T10:43:26.617Z [MASTER] error: Database Initialization Error: Access denied for user 'root'@'localhost' (using password: YES)

关于javascript - Windows Localhost 中的 Wiki.js 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64476714/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com