Closed java30433 closed 1 year ago
执行npm run dev正常启动后,进入控制台页面时终端出现报错
Error: ENOENT: no such file or directory, open 'D:\Develop\koishi\koishi-dev\node_modules\@koishijs\plugin-console\app\index.html'
控制台页显示:Not Found
<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Not Found</pre></body></html>
npm run start可以正常启动
见附加信息,记录了一次复现流程
成功启动,进入console主页面
见附加信息
PS D:\Develop\koishi> npm init koishi Create Koishi v6.0.1 √ Project name: ... koishi-dev Scaffolding project in koishi-dev ... Done. √ Initialize Git for version control? ... no √ Install and start it now? ... no You can start it later by: cd koishi-dev npm install npm run start PS D:\Develop\koishi> cd koishi-dev PS D:\Develop\koishi\koishi-dev> npm install added 463 packages in 32s PS D:\Develop\koishi\koishi-dev> npm run dev > koishi-dev@0.0.0 dev > cross-env NODE_ENV=development koishi start -r esbuild-register -r yml-register 2023-05-21 18:04:33 [I] app Koishi/4.13.0 2023-05-21 18:04:33 [I] app apply plugin group:entry 2023-05-21 18:04:33 [I] app apply plugin group:basic 2023-05-21 18:04:33 [I] app apply plugin commands 2023-05-21 18:04:33 [I] app apply plugin help 2023-05-21 18:04:33 [I] app apply plugin locales 2023-05-21 18:04:33 [I] app apply plugin rate-limit 2023-05-21 18:04:33 [I] app apply plugin group:console 2023-05-21 18:04:33 [I] app apply plugin analytics 2023-05-21 18:04:33 [I] app apply plugin config 2023-05-21 18:04:33 [I] app apply plugin console 2023-05-21 18:04:33 [I] app apply plugin dataview 2023-05-21 18:04:33 [I] app apply plugin explorer 2023-05-21 18:04:33 [I] app apply plugin logger 2023-05-21 18:04:33 [I] app apply plugin insight 2023-05-21 18:04:33 [I] app apply plugin market 2023-05-21 18:04:34 [I] app apply plugin sandbox 2023-05-21 18:04:34 [I] app apply plugin status 2023-05-21 18:04:34 [I] app apply plugin group:storage 2023-05-21 18:04:34 [I] app apply plugin database-sqlite 2023-05-21 18:04:34 [I] app apply plugin assets-local 2023-05-21 18:04:34 [I] app apply plugin group:adapter 2023-05-21 18:04:34 [I] app apply plugin gocqhttp 2023-05-21 18:04:34 [I] app apply plugin group:develop 2023-05-21 18:04:34 [I] app apply plugin hmr 2023-05-21 18:04:34 [I] assets missing config "selfUrl", fallback to "file:" scheme 2023-05-21 18:04:34 [I] app server listening at http://127.0.0.1:5140 2023-05-21 18:04:34 [I] sqlite auto creating table user 2023-05-21 18:04:34 [I] sqlite auto creating table binding 2023-05-21 18:04:34 [I] sqlite auto creating table channel 2023-05-21 18:04:34 [I] sqlite auto creating table stats_daily 2023-05-21 18:04:34 [I] sqlite auto creating table stats_hourly 2023-05-21 18:04:34 [I] sqlite auto creating table stats_longterm Error: ENOENT: no such file or directory, open 'D:\Develop\koishi\koishi-dev\node_modules\@koishijs\plugin-console\app\index.html' 2023-05-21 18:04:43 [I] app terminated by SIGINT 终止批处理操作吗(Y/N)? y PS D:\Develop\koishi\koishi-dev>
你是刚刚(几分钟前)进行的尝试吗?
console 插件的最新版本应该修复了此问题。
使用 npm run dep 更新所有依赖即可。
已经解决 感谢
Describe the bug
执行npm run dev正常启动后,进入控制台页面时终端出现报错
控制台页显示:Not Found
npm run start可以正常启动
Steps to reproduce
见附加信息,记录了一次复现流程
Expected behavior
成功启动,进入console主页面
Screenshots
见附加信息
Versions
Additional context