zeromq.node icon indicating copy to clipboard operation
zeromq.node copied to clipboard

Could not locate the bindings file

Open eberkund opened this issue 8 years ago • 5 comments

I am getting the following error

C:\electron-boilerplate\build\node_modules\bindings\bindings.js:91 Uncaught Error: Could not locate the bindings file. Tried:
 → C:\electron-boilerplate\build\node_modules\zmq\build\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\build\Debug\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\build\Release\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\out\Debug\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\Debug\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\out\Release\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\Release\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\build\default\zmq.node
 → C:\electron-boilerplate\build\node_modules\zmq\compiled\6.1.0\win32\x64\zmq.node

I have tried reinstalling, building, etc. many many times. The weird thing is that the file actually does exist at the one of the paths it is searching. Any ideas?

eberkund avatar Jul 14 '16 15:07 eberkund

Same error here.

  • Windows 7 (x64)
  • ZMQ 4.04 (x64)
  • Electron 1.3.2 (x64) + Node.js 6.3.0 (x64)

Also tried Electron 1.4.1 (x64) + Node.js 6.6.0 (x64)

stanleyxu2005 avatar Aug 09 '16 13:08 stanleyxu2005

I had the same issue, I installed the package with npm install --save zmq and after that echo 'require("zmq")' | node resulted in the error above.

The following fixed it for me:

cd node_modules/zmq/; node-gyp configure

I think there could be something wrong with this package. Possibly related to #534.

My system runs archlinux and I just noticed I also have the following value in my npmrc, as this was suggested as a security workaround a while ago.

ignore-scripts=true

kpcyrd avatar Aug 15 '16 15:08 kpcyrd

In my case, loading into ElectronJS (https://github.com/electron/electron) is not successful. I guess this is because Electron uses a self built node.dll. I need to build Electron and ZMQ using the same Node binary. I'm still on the investigation. Here is a potential solution (https://github.com/nteract/zmq-prebuilt/issues/2) ongoing.

stanleyxu2005 avatar Sep 26 '16 01:09 stanleyxu2005

Does this problem have a solution?

its2mc avatar Mar 30 '17 11:03 its2mc

The issue was fixed in https://github.com/zeromq/zeromq.js

lgeiger avatar Mar 30 '17 11:03 lgeiger