使用插件时提示未找到axios,安装后依然报错

我在使用如下插件,配置页面提示插件加载失败,查看日志后发现是axios没有安装,然后我安装依赖之后依然报错:)

2 个赞

The plugin you mentioned above is not following the best practice of Koishi plugin development, especially since a plugin should use ctx.http() to do an HTTP request instead of importing axios manually (and it didn’t even list axios as its dependency). You should file an issue to the plugin repository to the author of this plugin instead.

您上面提到的插件没有遵循 Koishi 插件开发的最佳实践,特别是因为插件应该使用 ctx.http() 来执行 HTTP 请求,而不是手动导入 axios (而且它甚至没有列出 axios 作为其依赖项)。您应该将问题提交到插件存储库并提交给该插件的作者。

2 个赞

你需要让这个插件的作者安装 axios 或者切换到官方推荐的写法,你装大概是没用的。

2 个赞

@shangxue 出来挨打

1 个赞

喵喵喵

1 个赞

明白了喵

1 个赞

See if it fixed when you update the latest version.

1 个赞