liuly0322 / l-plugin

L-Plugin for Yunzai-Bot
MIT License
25 stars 1 forks source link

使用塔罗牌报错 #21

Open Feng-Xiaohan opened 1 year ago

Feng-Xiaohan commented 1 year ago

我这边是在群晖上使用docker搭建的云崽,然后下载了 l 插件,已经手动将所有图片下载到了对应文件夹,但依旧不能使用塔罗牌功能,日志报错是:[15:09:08.983][ERRO] Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'axios' imported from /app/Yunzai-Bot/plugins/l-plugin/utils/common/download.js

完整报错如下(自下往上):

}

  code: 'ERR_MODULE_NOT_FOUND'

    at link (node:internal/modules/esm/module_job:75:36) {

    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)

    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38)

    at ESMLoader.resolve (node:internal/modules/esm/loader:323:32)

    at ESMLoader.defaultResolve (node:internal/modules/esm/resolve:1058:11)

    at moduleResolve (node:internal/modules/esm/resolve:843:20)

    at packageResolve (node:internal/modules/esm/resolve:794:9)

    at new NodeError (node:internal/errors:399:5)

Did you mean to import axios@0.27.2/node_modules/axios/index.js?

[15:09:08.983][ERRO] Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'axios' imported from /app/Yunzai-Bot/plugins/l-plugin/utils/common/download.js

[15:09:08.983][ERRO] 载入插件错误:tarot

我刚刚检查了我的 download.js 文件,和库里的文件是一样的: image

我检查了一下,我这边,roll点、吃什么、求签这几个功能可以正常使用,但包括塔罗牌在内的其他功能无法使用,请问是我哪里的配置出了问题吗? 我可以做什么,来使用 l 插件的其他功能呢?