在我更新了koishi后,market插件突然不能用了,插件市场打开是这样的
依赖管理是这样的
日志输出了这些
2024-02-17 21:47:44 [I] loader unload plugin market:7o3j74
2024-02-17 21:47:45 [I] loader apply plugin market:7o3j74
2024-02-17 21:47:45 [W] market ReferenceError: Headers is not defined
at Proxy.[cordis.invoke] (/home/jingming295/.koishi/data/instances/default/node_modules/undios/lib/index.cjs:153:23)
at Function.applyProxy (/home/jingming295/.koishi/data/instances/default/node_modules/@cordisjs/core/lib/index.cjs:722:35)
at http (/home/jingming295/.koishi/data/instances/default/node_modules/@cordisjs/core/lib/index.cjs:977:24)
at Proxy.<anonymous> (/home/jingming295/.koishi/data/instances/default/node_modules/undios/lib/index.cjs:70:36)
at _MarketProvider.collect (/home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/plugin-market/lib/node/index.js:391:38)
at _MarketProvider.prepare (/home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/plugin-market/lib/shared/index.js:52:45)
at _MarketProvider.start (/home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/plugin-market/lib/node/index.js:382:16)
at /home/jingming295/.koishi/data/instances/default/node_modules/@cordisjs/core/lib/index.cjs:994:18
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market ReferenceError: Headers is not defined
at Proxy.[cordis.invoke] (/home/jingming295/.koishi/data/instances/default/node_modules/undios/lib/index.cjs:153:23)
at Function.applyProxy (/home/jingming295/.koishi/data/instances/default/node_modules/@cordisjs/core/lib/index.cjs:722:35)
at http (/home/jingming295/.koishi/data/instances/default/node_modules/@cordisjs/core/lib/index.cjs:977:24)
at Proxy.<anonymous> (/home/jingming295/.koishi/data/instances/default/node_modules/undios/lib/index.cjs:70:36)
at _MarketProvider.collect (/home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/plugin-market/lib/node/index.js:391:38)
at _MarketProvider.prepare (/home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/plugin-market/lib/shared/index.js:52:45)
at _MarketProvider.get (/home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/plugin-market/lib/node/index.js:425:16)
at /home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/console/lib/index.js:57:25
at /home/jingming295/.koishi/data/instances/default/node_modules/@koishijs/console/lib/index.js:247:27
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
2024-02-17 21:47:45 [W] market Headers is not defined
把 registry.endpoint改成https://registry.npmjs.org/
search.endpoint改成https://registry.koishi.chat/index.json
也没用
这是我的market插件配置
koishi版本为:
Core: 4.17.0-beta.2
Console: 5.27.9
Koishi Desktop: 0.10.7
market 版本为: 2.11.1