zeromq w / Electron:找不到绑定文件

我使用的是Windows 7 x64,nodejs 5.1.0和Electron 0.35。 我按照电子快速启动应用程序的指示,然后将行require("zmq")到main.js. 此时,在npm install zmq --save electron main.js之后, electron main.js显示:

Error: Could not locate the bindings file. Tried: Error: Could not locate the bindings file. Tried: [ zmq.nodepath列表]

尝试的path之一实际上存在于系统中,即node_modules/zmq/build/Release/zmq.node

如果我删除了Electron应用程序代码,并在main.js中保留require("zmq")行,则可以使用node main.js成功运行。 在用Electron运行时,我该如何摆脱这个错误?

在阅读使用本机节点模块之后将其绘制出来。 基本上,每npm install一个本地软件包npm install之后,需要通过发出.\node_modules\.bin\electron-rebuild.cmd文件来重buildElectron头文件。