Electron app cannot find zeromq Native module


I have included zeromq (https://www.npmjs.com/package/zeromq) to communicate with an external c# program and everything work when I run the electron app from command line using ‘npm start’

But when I package the app using electron-packager and double click it, I get

I tried installing electron-rebuild and rebuilding electron but doesnt help



My bad,

I was including zeromq in devDependencies instead of listing it in,

Moving it to dependencies section in package.json and using electron-packager works now.

“dependencies”: {
“electron”: “^1.4.14”,
“zeromq” : “^4.1.1”,

closing the issue.