设备:玩客云
系统:armbian(Ubuntu 22.04.1 LTS)
CPU:晶晨S805(armv7)
Linux版本:Linux onecloud 6.1.9-meson #trunk SMP Thu Feb 2 15:42:54 UTC 2023 armv7l armv7l armv7l GNU/Linux
使用模板创建,npm指令
执行npm init koishi
后未成功启动,日志如下:
Create Koishi v6.2.0
✔ Project name: … koishi-app
Scaffolding project in koishi-app ...
Done.
✔ Install and start it now? … yes
added 465 packages in 2m
> koishi-app@0.0.0 start
> koishi start
2023-09-11 12:59:55 [I] app Koishi/4.14.5
2023-09-11 12:59:55 [I] app apply plugin group:entry
2023-09-11 12:59:55 [I] app apply plugin group:basic
2023-09-11 12:59:55 [I] app apply plugin commands
2023-09-11 12:59:56 [I] app apply plugin help
2023-09-11 12:59:56 [I] app apply plugin locales
2023-09-11 12:59:56 [I] app apply plugin rate-limit
2023-09-11 12:59:56 [I] app apply plugin group:console
2023-09-11 12:59:56 [I] app apply plugin analytics
2023-09-11 12:59:56 [I] app apply plugin config
2023-09-11 12:59:56 [I] app apply plugin console
2023-09-11 12:59:56 [I] app apply plugin dataview
2023-09-11 12:59:56 [I] app apply plugin explorer
2023-09-11 12:59:56 [I] app apply plugin logger
2023-09-11 12:59:56 [I] app apply plugin insight
2023-09-11 12:59:56 [I] app apply plugin market
2023-09-11 12:59:56 [I] app apply plugin sandbox
2023-09-11 12:59:56 [I] app apply plugin status
2023-09-11 12:59:57 [I] app apply plugin theme-vanilla
2023-09-11 12:59:57 [I] app apply plugin group:storage
2023-09-11 12:59:57 [I] app apply plugin database-sqlite
2023-09-11 12:59:57 [I] app apply plugin assets-local
2023-09-11 12:59:57 [I] app apply plugin group:adapter
2023-09-11 12:59:57 [I] assets missing config "selfUrl", fallback to "file:" scheme
2023-09-11 12:59:57 [W] app TypeError: Cannot read properties of undefined (reading 'ws')
at new NodeConsole (/root/koishi-app/node_modules/@koishijs/plugin-console/lib/node/index.js:63:29)
at _MainScope.apply (/root/koishi-app/node_modules/cordis/lib/index.cjs:476:24)
at _MainScope.start (/root/koishi-app/node_modules/cordis/lib/index.cjs:498:12)
at _MainScope.restart (/root/koishi-app/node_modules/cordis/lib/index.cjs:246:10)
at _MainScope.setup (/root/koishi-app/node_modules/cordis/lib/index.cjs:469:10)
at new MainScope (/root/koishi-app/node_modules/cordis/lib/index.cjs:428:12)
at _Registry.plugin (/root/koishi-app/node_modules/cordis/lib/index.cjs:586:15)
at _Context.plugin (/root/koishi-app/node_modules/cordis/lib/index.cjs:650:31)
at import_core.Context.plugin (/root/koishi-app/node_modules/koishi/lib/index.cjs:65:17)
at _NodeLoader.forkPlugin (/root/koishi-app/node_modules/@koishijs/loader/lib/shared.js:233:19)
2023-09-11 12:59:57 [W] app TypeError: Cannot read properties of undefined (reading 'get')
at _NodeConsole.serveAssets (/root/koishi-app/node_modules/@koishijs/plugin-console/lib/node/index.js:110:21)
at _NodeConsole.start (/root/koishi-app/node_modules/@koishijs/plugin-console/lib/node/index.js:78:10)
at /root/koishi-app/node_modules/cordis/lib/index.cjs:743:18
2023-09-11 12:59:57 [W] app TypeError: Cannot read properties of undefined (reading 'close')
at _NodeConsole.stop (/root/koishi-app/node_modules/@koishijs/plugin-console/lib/node/index.js:202:16)
at event <dispose> (/root/koishi-app/node_modules/cordis/lib/index.cjs:748:18)
at /root/koishi-app/node_modules/cordis/lib/index.cjs:306:7
at Array.filter (<anonymous>)
at _MainScope.reset (/root/koishi-app/node_modules/cordis/lib/index.cjs:303:51)
at _MainScope.reset (/root/koishi-app/node_modules/cordis/lib/index.cjs:489:11)
at _MainScope.cancel (/root/koishi-app/node_modules/cordis/lib/index.cjs:281:10)
at /root/koishi-app/node_modules/cordis/lib/index.cjs:270:12
at async Promise.all (index 31)
at async _Lifecycle.flush (/root/koishi-app/node_modules/cordis/lib/index.cjs:82:7)
2023-09-11 12:59:58 [I] sqlite auto creating table user
2023-09-11 12:59:58 [I] sqlite auto creating table binding
2023-09-11 12:59:58 [I] sqlite auto creating table channel
node.js版本为18.17.1
求各位大佬解答