CikeyQi / nsfwjs-plugin

基于 Yunzai 的涩图监听插件,使用 NSFWJS 模型
https://docs.yunzai.art
GNU Affero General Public License v3.0
34 stars 4 forks source link

Error: The specified module could not be found. #6

Closed 54Longwu closed 1 year ago

54Longwu commented 1 year ago

插件加载不出来,但全部更新到最新版本 报错

tym2008 commented 1 year ago

去看这里面: node_modules.pnpm\@tensorflow+tfjs-node@3.18.0_seedrandom@2.4.4\node_modules\@tensorflow\tfjs-node\lib 让两个文件夹(我是v8和v9,用的nodejsv20.5.1,windows server 2019),让里面都有tensorflow.dll和tfjs_binding.node,之后再试试 但是我第一次pnpm install的时候会提示无法创建链接啥的,要手动创建napi-v9这个文件夹才能正常pnpm install

CikeyQi commented 1 year ago

请尝试把 node_modules\@tensorflow\tfjs-node\deps\lib 或者 node_modules\@tensorflow\tfjs-node\lib\napi-v9 下的 tensorflow.dlltfjs_binding.node 这两个文件移动到 node_modules\@tensorflow\tfjs-node\lib\napi-v8 (报错显示哪个目录就放在哪个目录下)目录下,即可解决。(如果上述目录中没有这两个文件,请自行使用 Everything 全局查找)

作者电脑中的两个文件经供参考:文件地址

参考文献:#4116

更多问题可在TensorFlow官方issues内搜索关键错误信息:issues

54Longwu commented 1 year ago

image 苏打姐姐照你方法做了还是报错

tym2008 commented 1 year ago

试试崽根目录的node_modules.pnpm\@tensorflow+tfjs-node@3.18.0_seedrandom@2.4.4\node_modules\@tensorflow\tfjs-node\lib,之后在根目录pnpm i应该能解决(亲测winserver2019+trss崽正常)

Conkine commented 6 months ago

tfjs_binding.node

全局都没tfjs_binding.node,已经搜索整个yunzai目录

tym2008 commented 6 months ago

tfjs_binding.node

全局都没tfjs_binding.node,已经搜索整个yunzai目录

pnpm i了吗?node_modules/.pnpm/里面有tensorflow+tfjs-node的文件吗?再确认下