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
Electron - Module did not self-register #626
Comments
Try adding the module as |
I tried and I got the same error. |
What's your build process? Can you walk me through how it's all built? Electron build processes are a bit odd compared to general node stuff, but I'm pretty familiar. |
I just install nodegit using |
I'm seeing the same error. My 'npm install' appears to be building the nodegit.node binary from scratch because it can't find one for x64 linux on S3. Not sure if the nodegit.node file should be runnable, but when I try to run it I get a seg fault crash, and gdb isn't helpful on giving any more information. Any chance you can post an x64 Linux binary to S3, for Ubuntu Linux? Anything I can help with on debugging this? For now I have to revert back to 0.3.3. My nodegit works great on Mac but that's because there's a binary out there on S3, but my custom-built binary for Linux is crashing. |
Just to verify, you're doing the build AFTER setting the engines field? That only has an effect at compile time, not at build time. The .node file should be requirable. If you try requiring it in a normal node context, does that work? |
I'm really sorry. The problem was that I was building a release on a build server with node 0.10, and then trying to run it on a separate server with node 0.12. Hopefully this will help anyone else that makes the same dumb mistake. |
Ah, that would do it. |
Yes I'm doing the build after setting the engines field. and when I copy the node_modules directory and require nodegit in a normal nodejs script I have no error |
i have the same issue on windows than @ybouhjira. My backgound is that i just had 1 problem installing nodegit with npm, was the building of libssh2 (the file sys\iou.h couldn't be found), after some workaround using another libssh2 project, i got the complete build. I've trying to run the app with Electron after rebuild the module with node-gyp but didn't work. I have in my package.json
|
i figured out, the solution was to rebuild the module targeting different node header. |
Yeah, any native module will have to be pointed at different headers to rebuild, so in general that process should work for nodegit if it works elsewhere. |
I'm a newbie. I tried the following commands. lxw@lxw:16:56:29:mixJavaAndNode$ electron -v
v0.37.8
lxw@lxw:16:56:45:mixJavaAndNode$ ./node_modules/.bin/electron-rebuild -v 0.37.8
Couldn't find electron-prebuilt and no --node-module-version parameter set, always rebuilding
lxw@lxw:16:57:41:mixJavaAndNode$ electron . It just works. But I have no idea why it works at all. |
Closing out all of these old electron-how-to issues. |
Notes: * Host Key RSA 256/512 support nodegit#536 * Client side key hash upgrading for RFC 8332 * Support for server-sig-algs, ext-info-c server messages * Customizing preferred server-sig-algs via the preference LIBSSH2_METHOD_SIGN_ALGO Credit: Anders Borum, Will Cosgrove
I get this error when I try to
require
nodegit (version 0.4.1) in electron (version 0.28.3)I added
engines.electron
in package.json BTWThe text was updated successfully, but these errors were encountered: