Error: Could not find the binding file. Tried: # 56

I get the following error while I make the start of genieacs cwmp. I also tried to rebuild several times. Thanks at Advance.

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) 
+6
source share
3 answers

I talked with the developer and he said that this is a bug in node -gyp, you should just do the following:

 npm install node-gyp 

If this does not solve the problem, you can install libxmljs again to be sure

 npm install libxmljs 

I just tried it, it worked like a charm

+6
source

I had this problem before

I reduced the libxmljs dependency to @ 0.11.0 (package.json) and ran sudo npm install libxmljs

+3
source

I just went around the house to solve this problem.

I used PM2 and had several node applications running on the same server, I'm not sure why, but when I killed all the applications and then did "npm i" in an unpleasant project, it all went fine. No sudo, do not delete node_modules and all launches of the latest version of node.

Hope this helps

0
source

Source: https://habr.com/ru/post/979834/


All Articles