全部更新依赖之后koishi无法启动

System:
OS: Windows 10 10.0.19045
CPU: (56) x64 Genuine Intel(R) CPU 0000 @ 2.40GHz

Binaries:
Node: 16.19.1
Yarn: 3.5.0

Koishi:
Core: 4.13.0
Console: 5.9.3
Koishi Desktop: 0.10.6
LBS1CTH(@LS7XB0LM4{5GA

0000|3|2023-07-25 20:28:13 [D] launcher 触发操作:运行
0000|3|2023-07-25 20:28:13 [D] launcher 触发操作:运行用户界面
0000|3|2023-07-25 20:28:13 [D] launcher Writing tray.lock...
0000|3|2023-07-25 20:28:13 [D] launcher 托盘已就绪。
0000|3|2023-07-25 20:28:15 [D] launcher 触发操作:运行服务
0000|2|2023-07-25 20:28:15 [I] launcher 正在启动这些实例:
                        default
0000|3|2023-07-25 20:28:15 [D] launcher Writing daemon.lock...
0000|3|2023-07-25 20:28:15 [D] launcher Serving daemon...
1000|2|    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
1000|2|Error: Cannot find module 'C:\Users\admin\AppData\Roaming\Koishi\Desktop\data\instances\default\start'
1000|2|  throw err;
1000|2|node:internal/modules/cjs/loader:1024
1000|2|
1000|2|  ^
1000|2|    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
1000|2|    at Function.Module._load (node:internal/modules/cjs/loader:866:27)
1000|2|    at node:internal/main/run_main_module:22:47 {
1000|2|  code: 'MODULE_NOT_FOUND',
1000|2|}
1000|2|  requireStack: []
0000|2|2023-07-25 20:28:16 [W] launcher Instance default exited with: exit status 1.
0000|3|2023-07-25 20:28:19 [D] launcher Client connected at 127.0.0.1:51197
0000|3|2023-07-25 20:28:19 [D] launcher Parsed request type: ping
0000|3|2023-07-25 20:28:19 [D] launcher Send pong back
0000|3|2023-07-25 20:28:19 [D] launcher Client connected at 127.0.0.1:51198
0000|3|2023-07-25 20:28:19 [D] launcher Parsed request type: ping
0000|3|2023-07-25 20:28:19 [D] launcher Send pong back
0000|3|2023-07-25 20:28:19 [D] launcher Client connected at 127.0.0.1:51199
0000|3|2023-07-25 20:28:19 [D] launcher Parsed request type: cmd
0000|3|2023-07-25 20:28:19 [D] launcher Parsed command: ps
0000|3|2023-07-25 20:28:19 [D] launcher Acquired task 1
0001|3|2023-07-25 20:28:19 [D] launcher Trigger KoiCmd ps
0000|3|2023-07-25 20:28:19 [D] launcher Releasing task 1
0000|3|2023-07-25 20:29:18 [D] launcher 正在启动实例 default
0000|3|2023-07-25 20:29:18 [D] launcher Client connected at 127.0.0.1:51200
0000|3|2023-07-25 20:29:18 [D] launcher Parsed request type: ping
0000|3|2023-07-25 20:29:18 [D] launcher Send pong back
0000|3|2023-07-25 20:29:18 [D] launcher Client connected at 127.0.0.1:51201
0000|3|2023-07-25 20:29:18 [D] launcher Parsed request type: cmd
0000|3|2023-07-25 20:29:18 [D] launcher Parsed command: start
0000|3|2023-07-25 20:29:18 [D] launcher Acquired task 2
0002|2|2023-07-25 20:29:18 [I] launcher Starting instance default...
0002|3|2023-07-25 20:29:18 [D] launcher Trigger KoiCmd start
0000|3|2023-07-25 20:29:18 [D] launcher Releasing task 2
1000|2|node:internal/modules/cjs/loader:1024
1000|2|  throw err;
1000|2|  ^
1000|2|Error: Cannot find module 'C:\Users\admin\AppData\Roaming\Koishi\Desktop\data\instances\default\start'
1000|2|    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
1000|2|
1000|2|    at Function.Module._load (node:internal/modules/cjs/loader:866:27)
1000|2|    at node:internal/main/run_main_module:22:47 {
1000|2|    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
1000|2|  requireStack: []
1000|2|  code: 'MODULE_NOT_FOUND',
1000|2|}
0000|2|2023-07-25 20:29:19 [W] launcher Instance default exited with: exit status 1.
0000|3|2023-07-25 20:29:20 [D] launcher 正在重建托盘
0000|3|2023-07-25 20:29:20 [D] launcher Client connected at 127.0.0.1:51202
0000|3|2023-07-25 20:29:20 [D] launcher Parsed request type: ping
0000|3|2023-07-25 20:29:20 [D] launcher Send pong back
0000|3|2023-07-25 20:29:20 [D] launcher Client connected at 127.0.0.1:51203
0000|3|2023-07-25 20:29:20 [D] launcher Parsed command: ps
0000|3|2023-07-25 20:29:20 [D] launcher Parsed request type: cmd
0000|3|2023-07-25 20:29:20 [D] launcher Acquired task 3
0003|3|2023-07-25 20:29:20 [D] launcher Trigger KoiCmd ps
0000|3|2023-07-25 20:29:20 [D] launcher Releasing task 3

1 个赞

看下实例目录下的 package.json

实例目录:

{
  "name": "@koishijs/boilerplate",
  "version": "1.7.3",
  "private": true,
  "files": [
    ".env",
    "koishi.yml"
  ],
  "license": "AGPL-3.0",
  "scripts": {
    "start": "koishi start"
  },
  "dependencies": {
    "@chronocat/koishi-plugin-adapter": "0.0.26",
    "@chronocat/koishi-plugin-launcher": "0.0.26",
    "@koishijs/plugin-adapter-discord": "3.8.4",
    "@koishijs/plugin-adapter-kook": "3.10.1",
    "@koishijs/plugin-adapter-lark": "2.1.2",
    "@koishijs/plugin-adapter-onebot": "5.7.3",
    "@koishijs/plugin-adapter-telegram": "3.7.13",
    "@koishijs/plugin-admin": "1.3.1",
    "@koishijs/plugin-analytics": "1.0.3",
    "@koishijs/plugin-auth": "4.1.0",
    "@koishijs/plugin-bind": "1.4.2",
    "@koishijs/plugin-commands": "3.2.2",
    "@koishijs/plugin-config": "2.2.7",
    "@koishijs/plugin-console": "5.12.1",
    "@koishijs/plugin-database-sqlite": "3.5.6",
    "@koishijs/plugin-dataview": "2.3.1",
    "@koishijs/plugin-echo": "2.2.4",
    "@koishijs/plugin-explorer": "1.4.5",
    "@koishijs/plugin-help": "2.2.4",
    "@koishijs/plugin-insight": "3.4.1",
    "@koishijs/plugin-inspect": "1.1.2",
    "@koishijs/plugin-locales": "2.4.0",
    "@koishijs/plugin-logger": "2.3.2",
    "@koishijs/plugin-market": "2.2.9",
    "@koishijs/plugin-rate-limit": "1.3.3",
    "@koishijs/plugin-sandbox": "3.1.10",
    "@koishijs/plugin-status": "7.1.3",
    "@rinkuto/koishi-plugin-pixiv": "1.1.7",
    "koishi": "4.13.9",
    "koishi-plugin-addmpp": "0.0.3",
    "koishi-plugin-assets-local": "3.1.0",
    "koishi-plugin-autoxjs-sender": "1.4.0",
    "koishi-plugin-ba-plugin": "0.9.0-alpha1",
    "koishi-plugin-chatgpt-edit": "1.4.5",
    "koishi-plugin-davinci-003": "6.0.1",
    "koishi-plugin-desktop": "0.0.4",
    "koishi-plugin-dialogue": "4.0.9",
    "koishi-plugin-dialogue-author": "1.0.4",
    "koishi-plugin-dialogue-context": "1.0.3",
    "koishi-plugin-dialogue-flow": "1.0.4",
    "koishi-plugin-dialogue-rate-limit": "1.0.3",
    "koishi-plugin-dialogue-time": "1.0.3",
    "koishi-plugin-downloads": "0.1.1",
    "koishi-plugin-gocqhttp": "3.8.0",
    "koishi-plugin-kbot": "1.1.2-alpha.6",
    "koishi-plugin-novelai": "1.18.3",
    "koishi-plugin-open-pics": "1.1.6",
    "koishi-plugin-paddlespeech": "0.0.3",
    "koishi-plugin-puppeteer": "3.5.0",
    "koishi-plugin-red": "1.0.19",
    "koishi-plugin-rr-image-censor": "2.0.1",
    "koishi-plugin-rr-translator": "1.0.2",
    "koishi-plugin-tc-sst": "0.0.4",
    "koishi-plugin-tencent-tts": "0.0.1",
    "koishi-plugin-theme-vanilla": "1.0.6",
    "koishi-plugin-translator-baidu": "1.1.2"
  }
}

1 个赞