I am getting following error while i am doing start of genieacs cwmp. I have also tried to rebuild several times. Thanks in Advance.
我正在开始genieacs cwmp时遇到错误。我也试过多次重建。提前致谢。
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)
3 个解决方案
#1
8
I spoke to the developer, and he said that it was a bug in node-gyp, you should simply do the following:
我与开发人员交谈过,他说这是node-gyp中的一个错误,你应该简单地执行以下操作:
npm install node-gyp
if that didn't solve the issue, then you can install libxmljs again just to be sure
如果这没有解决问题,那么你可以再次安装libxmljs以确保
npm install libxmljs
i just tried it, worked like a charm
我只是尝试过它,就像一个魅力
#2
3
I had this issue before
我以前遇到过这个问题
I downgraded the dependency of libxmljs to @0.11.0 (package.json) and ran sudo npm install libxmljs
我将libxmljs的依赖关系降级为@ 0.11.0(package.json)并运行sudo npm install libxmljs
#3
0
I just went around the houses to resolve this issue.
我只是绕着房子来解决这个问题。
I was using PM2 and had multiple node apps running on the one server, I'm not sure why, but when I killed all the apps and then did an 'npm i' in the troublesome project, it all went through fine. No sudo, no deleting node_modules and all running the latest version of node.
我正在使用PM2并在一台服务器上运行多个节点应用程序,我不知道为什么,但是当我杀死所有应用程序然后在麻烦的项目中做了'npm i'时,一切都很顺利。没有sudo,没有删除node_modules并且都运行最新版本的节点。
Hope this helps
希望这可以帮助
#1
8
I spoke to the developer, and he said that it was a bug in node-gyp, you should simply do the following:
我与开发人员交谈过,他说这是node-gyp中的一个错误,你应该简单地执行以下操作:
npm install node-gyp
if that didn't solve the issue, then you can install libxmljs again just to be sure
如果这没有解决问题,那么你可以再次安装libxmljs以确保
npm install libxmljs
i just tried it, worked like a charm
我只是尝试过它,就像一个魅力
#2
3
I had this issue before
我以前遇到过这个问题
I downgraded the dependency of libxmljs to @0.11.0 (package.json) and ran sudo npm install libxmljs
我将libxmljs的依赖关系降级为@ 0.11.0(package.json)并运行sudo npm install libxmljs
#3
0
I just went around the houses to resolve this issue.
我只是绕着房子来解决这个问题。
I was using PM2 and had multiple node apps running on the one server, I'm not sure why, but when I killed all the apps and then did an 'npm i' in the troublesome project, it all went through fine. No sudo, no deleting node_modules and all running the latest version of node.
我正在使用PM2并在一台服务器上运行多个节点应用程序,我不知道为什么,但是当我杀死所有应用程序然后在麻烦的项目中做了'npm i'时,一切都很顺利。没有sudo,没有删除node_modules并且都运行最新版本的节点。
Hope this helps
希望这可以帮助