Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在Windows Localhost中安装Wiki.js_Javascript_Node.js_Wiki.js - Fatal编程技术网

Javascript 在Windows Localhost中安装Wiki.js

Javascript 在Windows Localhost中安装Wiki.js,javascript,node.js,wiki.js,Javascript,Node.js,Wiki.js,我正在尝试在windows 10 localhost上安装到Wiki.js。在执行节点服务器时,我遇到以下错误 (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:1

我正在尝试在windows 10 localhost上安装到Wiki.js。在执行节点服务器时,我遇到以下错误

(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版本15.1发行版10.4.11-MariaDB,适用于Win64(AMD64),源代码版本7C2C420B70B19CC02B52811127205E876F3919DAD

非常感谢您的帮助

访问您的数据库是一个密码问题。 在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]错误:数据库初始化错误:用户“root”@“localhost”的访问被拒绝(使用密码:是)


您是否尝试按照文档进行安装?是的。我按照上面提到的步骤做了,仍然没有运气。