使用yarn create koishi新建的项目,启动时无法启动控制台,以下是输出:
C:\WorkSpace\koishi-app>yarn start
2024-09-13 15:19:32 [I] app Koishi/4.17.12
2024-09-13 15:19:32 [I] loader apply plugin group:entry
2024-09-13 15:19:32 [I] loader apply plugin group:server
2024-09-13 15:19:32 [I] loader apply plugin server:unk6tq
2024-09-13 15:19:32 [I] loader apply plugin group:basic
2024-09-13 15:19:32 [I] loader apply plugin commands:xj570v
2024-09-13 15:19:32 [I] loader apply plugin help:s6gbj5
2024-09-13 15:19:32 [I] loader apply plugin http:kgpvfc
2024-09-13 15:19:32 [I] loader apply plugin locales:4cyqb5
2024-09-13 15:19:32 [I] loader apply plugin proxy-agent:blhvsc
2024-09-13 15:19:32 [I] loader apply plugin rate-limit:qakrmq
2024-09-13 15:19:32 [I] loader apply plugin telemetry:ktrzgu
2024-09-13 15:19:32 [I] loader apply plugin group:console
2024-09-13 15:19:32 [I] loader apply plugin actions:juki18
2024-09-13 15:19:32 [I] loader apply plugin analytics:7wvkn0
2024-09-13 15:19:32 [I] loader apply plugin config:c56ecj
2024-09-13 15:19:32 [I] loader apply plugin console:5p1k0n
2024-09-13 15:19:32 [I] loader apply plugin dataview:8t2jir
2024-09-13 15:19:32 [I] loader apply plugin explorer:djrifz
2024-09-13 15:19:32 [I] loader apply plugin logger:2enz6g
2024-09-13 15:19:32 [I] loader apply plugin insight:tkfdfi
2024-09-13 15:19:32 [I] loader apply plugin market:n7kkgh
2024-09-13 15:19:33 [I] loader apply plugin notifier:039qh2
2024-09-13 15:19:33 [I] loader apply plugin oobe:7w1yqf
2024-09-13 15:19:33 [I] loader apply plugin sandbox:3woanm
2024-09-13 15:19:33 [I] loader apply plugin status:hpmtx6
2024-09-13 15:19:33 [I] loader apply plugin theme-vanilla:ciuwok
2024-09-13 15:19:33 [I] loader apply plugin group:storage
2024-09-13 15:19:33 [I] loader apply plugin database-sqlite:bahfhc
2024-09-13 15:19:33 [I] loader apply plugin assets-local:rdivc4
2024-09-13 15:19:33 [I] loader apply plugin group:adapter
2024-09-13 15:19:33 [I] assets missing config "selfUrl", fallback to "file:" scheme
2024-09-13 15:19:33 [E] app TypeError: Can not repeat "0" without a prefix and suffix
at tokensToRegexp (C:\WorkSpace\koishi-app\node_modules\path-to-regexp\dist\index.js:380:31)
at stringToRegexp (C:\WorkSpace\koishi-app\node_modules\path-to-regexp\dist\index.js:346:12)
at pathToRegexp (C:\WorkSpace\koishi-app\node_modules\path-to-regexp\dist\index.js:422:12)
at new Layer (C:\WorkSpace\koishi-app\node_modules\@koa\router\lib\layer.js:43:17)
at Router.register (C:\WorkSpace\koishi-app\node_modules\@koa\router\lib\router.js:570:17)
at Server.register (C:\WorkSpace\koishi-app\node_modules\@cordisjs\plugin-server\lib\index.cjs:199:25)
at Router.<computed> [as get] (C:\WorkSpace\koishi-app\node_modules\@koa\router\lib\router.js:200:12)
at NodeConsole.serveAssets (C:\WorkSpace\koishi-app\node_modules\@koishijs\plugin-console\lib\node\index.js:145:21)
at NodeConsole.start (C:\WorkSpace\koishi-app\node_modules\@koishijs\plugin-console\lib\node\index.js:106:10)
at C:\WorkSpace\koishi-app\node_modules\@cordisjs\core\lib\index.cjs:1199:18
2024-09-13 15:19:33 [I] server server listening at http://127.0.0.1:5141