-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPM version error in electron #100
Comments
+1 |
1 similar comment
+1 |
Also here. I'm new to Electron but I have't been able to rebuild this module for current Electron successfully no matter what variant of rebuild I try, and I'm not sure if I should be using an older Electron or what. |
I found solution. Use electron-rebuild can fix this issue: |
Trying to do that dies on zeromq when it loops through all the dependencies: g++: error: ./Release/../../zmq/lib/libzmq.a: No such file or directory I have libzmq.a provide by a zeromq system package, but I have no idea how these npm build tools are supposed to work, it's not finding it. |
I got the same issue. I haven't had a chance to dive too deep into why this is happening but on my end, it was because it was missing the ZMQ C libraries. You can confirm this by
Should give you:
Then if you run the preinstall script to pull the libraries and everything else (go up one directory so you are in the root directory of zeromq). Hopefully I can debug a little more into this so that it works more seamlessly when upgrading verisons since this is hacky to have to do everytime you reinstall your |
Yeah, I got deep enough down that rabbit hole that I decided to stick to Electron 1.8.8 for the project I was working on, because that gets along with this version of zerorpc. There are some things I'd like to have that don't seem to work in that old version of Electron (like Notifications in the main process) that I'd still like to see this library updated due to the difficulty in recompiling it, though. |
FYI -- This will still work on newest Electron 2.x.x, which is still supported. It does not work on current Electron 3.x/4.x/5.x and I still haven't been able to recompile it successfully. |
you may use |
@daniel0076 Were you able to rebuild under Windows too? I was able to get it working on Mac but not Windows. |
Ok this is probbably just a noob question but I keep getting this error when using zerorpc in electron.
error message:
dependencies in my package.json:
I have tried changing versions, running
npm rebuild
... no success.What am I doing wrong?
Thank you for your patience.
The text was updated successfully, but these errors were encountered: