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
Installing for Electron #662
Comments
Have you looked through our backlog of issues on this subject? https://github.com/nodegit/nodegit/search?q=electron&type=Issues&utf8=%E2%9C%93 |
Yep, I tried the variations suggested by others (using both 'electron' and 'atom-shell' as engines) and tried the suggestions made by the electron team for using node modules and each time there were no compilation errors; just the console error on require. I was wondering if perhaps it's an issue with the latest electron version? At lot of the other tickets reference older versions of electron |
I know that @maxkorp is trying to simplify the install process on https://github.com/nodegit/nodegit/tree/simplify-build and is also working on getting a published binary for electron. We might have to wait for mapbox/node-pre-gyp#112 to land first but @maxkorp would know more. |
I updated dependencies in my package.json today, but now, I'm also getting the same issue. My package.json has -
Looks like nodegit is not getting recompiled. It's fetching the prebuilt nodegit. |
I am also running into the same problem when working on Electron on Mac OS X. My problem: Error: Module did not self-register. I built the nodegit myself by cloning and running npm install. That worked properly.
|
I don't see this issue anymore with electron 0.30.4 |
I upgraded to 0.30.4 and still can't get it working. I tried in both the renderer, and the main process. |
It actually seems largely based on the version of node you're using initially to do the install before rebuilding against electrons headers. If you use node11/node12/iojs/apm for install, it should work, but with node10 it seems to break. |
Oh! I've had issues with installing with node 10 as well. I was able to do it after I bumped to node v0.10.40. |
Really? That's unusual, that means it's not what I thought it was causing that issue >.< |
I also tried node v10 and v12.7 and didn't have success in either case. I tried moving nodegit to both main and renderer processes with no luck. |
Hrmmm, could have sworn that the node10 version of http_parser was the issue. |
I also had this problem and fixed it with |
Closing out all of these old electron-how-to issues. |
Hi,
I'm trying to install nodegit for electron. My package.json has the following:
and i've tried running
and
but both complain about "Module version mismatch" sometimes it's Expected 44, got 14, and sometimes it's Expected 44, got 43
I've also tried cloning the repo and following the manual build instructions, but alas - no joy.
Any ideas?
The text was updated successfully, but these errors were encountered: