错误:无法找到绑定文件.尝试过:#56 [英] Error: Could not locate the bindings file. Tried: #56

查看:69
本文介绍了错误:无法找到绑定文件.尝试过:#56的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动GenieACS cwmp时出现以下错误.我也尝试过几次重建.

I am getting the following error when I'm starting GenieACS cwmp. I have also tried to rebuild several times.

Error: Could not locate the bindings file. Tried:
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/Debug/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/Release/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/out/Debug/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/Debug/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/out/Release/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/Release/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/build/default/xmljs.node
→ /usr/local/lib/node_modules/genieacs/node_modules/libxmljs/compiled/0.10.25/linux/x64/xmljs.node
at bindings (/usr/local/lib/node_modules/genieacs/node_modules/libxmljs/node_modules/bindings/bindings.js:88:9)
at Object. (/usr/local/lib/node_modules/genieacs/node_modules/libxmljs/lib/bindings.js:1:99)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/genieacs/node_modules/libxmljs/index.js:4:16)
at Module._compile (module.js:456:26)
18 Dec 18:34:26 - Worker 7837 died (8)

推荐答案

我与开发人员交谈,他说这是node-gyp中的错误,您只需执行以下操作:

I spoke to the developer, and he said that it was a bug in node-gyp, you should simply do the following:

npm install node-gyp

如果这不能解决问题,那么可以确保再次安装libxmljs

if that didn't solve the issue, then you can install libxmljs again just to be sure

npm install libxmljs

我只是尝试了一下,就像一个魅力

i just tried it, worked like a charm

这篇关于错误:无法找到绑定文件.尝试过:#56的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆