CikeyQi/nsfwjs-plugin

Error: The Node.js native addon module (tfjs_bindin g.node) can not be found at path

zaliangjun opened this issue · 2 comments

windows端 喵崽
image
[MiaoYz][01:37:26.015][ERRO] 【NSFWJS-Plugin v0.0.2】 设置文件不存在,将使用默认
设置文件
[MiaoYz][01:37:26.018][ERRO] 【NSFWJS-Plugin v0.0.2】 策略文件不存在,将使用默认
策略文件
[MiaoYz][01:37:26.231][ERRO] 载入插件错误:Examine
[MiaoYz][01:37:26.231][ERRO] Error: The Node.js native addon module (tfjs_bindin
g.node) can not be found at path: D:\bot\Miao-Yunzai\node_modules.pnpm@tensorf
low+tfjs-node@3.21.1\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding
.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source'
to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.
com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an
issue.
at Object. (D:\bot\Miao-Yunzai\node_modules.pnpm@tensorflow+tfj
s-node@3.21.1\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[MiaoYz][01:37:26.232][ERRO] 载入插件错误:Listen
[MiaoYz][01:37:26.232][ERRO] Error: The Node.js native addon module (tfjs_bindin
g.node) can not be found at path: D:\bot\Miao-Yunzai\node_modules.pnpm@tensorf
low+tfjs-node@3.21.1\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding
.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source'
to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.
com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an
issue.
at Object. (D:\bot\Miao-Yunzai\node_modules.pnpm@tensorflow+tfj
s-node@3.21.1\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[MiaoYz][01:37:26.232][INFO] ---------------
[MiaoYz][01:37:26.233][ERRO] Error: The Node.js native addon module (tfjs_bindin
g.node) can not be found at path: D:\bot\Miao-Yunzai\node_modules.pnpm@tensorf
low+tfjs-node@3.21.1\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding
.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source'
to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.
com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an
issue.
at Object. (D:\bot\Miao-Yunzai\node_modules.pnpm@tensorflow+tfj
s-node@3.21.1\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

qfwycn commented

我也是这个错误,有解决方案么,网上查的都试了也都没用,运行npm rebuild @tensorflow/tfjs-node --build-addon-from-source 也没有用

参考issues