Zeromq w / Electron: Could not find the binding file

I am using Windows 7 x64, nodejs 5.1.0 and Electron 0.35. I followed the instructions of the Electronic Quick Launch Application and then added the require("zmq") to main.js. At this point, after npm install zmq --save , electron main.js display:

Error: Could not locate the bindings file. Tried: Error: Could not locate the bindings file. Tried: [list of paths zmq.node ]

One of the found paths is actually present in the system, i.e. node_modules/zmq/build/Release/zmq.node

If I remove the Electron application code and leave only the require("zmq") in main.js, I can successfully start using node main.js How should I get rid of errors when working with Electron?

+5
source share
1 answer

I found this out after reading Using our own Node modules . Basically, after each npm install your own package, you need to rebuild it using Electron headers by issuing .\node_modules\.bin\electron-rebuild.cmd .

+4
source

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


All Articles