JustinTulloss / zeromq.node

Node.js bindings to the zeromq library
MIT License
1.65k stars 284 forks source link

Could not locate the bindings file #541

Open eberkund opened 8 years ago

eberkund commented 8 years ago

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?

stanleyxu2005 commented 8 years ago

Same error here.

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

kpcyrd commented 8 years ago

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
stanleyxu2005 commented 7 years ago

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.

its2mc commented 7 years ago

Does this problem have a solution?

lgeiger commented 7 years ago

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