-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
OS X: Error: Module version mismatch. Expected 48, got 49 #683
Comments
Duplicates #453 (comment) |
Tried removing node_modules + |
Please do not node-gyp rebuild — it is not correct — electron headers must be used. If you have native deps, use 2 package.json structure and electron-builder will compile it for you automatically. |
I see that you are author of this boilerplate project, may be https://github.com/szwacz/electron-boilerplate will be useful for you. |
I am using 2 package.json structure, and I have to do The boilerplate you mentioned does not have any native module in it, so it's not my case. |
Also, I am able to run it on OS X ( |
Ok, I will investigate. |
Related szwacz/electron-boilerplate#198 |
I'm not sure this is correct. I use the following in my root
As you can see it skips all the |
Sorry, it cannot be fixed. On macOS electron-builder uses some native deps. When you have file |
I will investigate is it possible to remove such native deps ( |
I think, as solution, electron-builder can provide some script to perform |
Ok, let me see if I got this right. |
Option |
Set |
Well, it indeed solves the problem, kudos for the solution. |
|
Great. Btw, perhaps you should add to the documentation clarification about |
@meltedspark PR to improve doc welcome :) |
Add clarification regarding how native addons that are not dependencies but a part of the project should be treated #683
@develar same error here, repo https://github.com/zaggino/brackets-electron and build here https://travis-ci.org/zaggino/brackets-electron ... linux is passing, osx is not with |
How are you running the process? If it might help anyone, we had a similar issues running node via pm2, we were getting this error: Error: Module version mismatch. Expected 48, got 57 It seems the number refers to NODE MODULE version, 48 is node 6, 57 is node 8. We were running our pm2 processes and each process specifies a particular node version to use. They were point to node 6 versions, even thought our current nvm use version was at 8.12. (node.js version 8.12.0 ) Deleting and restarting the PM2 jobs, created the tasks with the updated link to node 8.12 and we stopped getting that error. Hope it helps someone! |
When trying to build for OS X getting the following error:
tsc && node-gyp rebuild && build --mac
To reproduce:
npm install
npm run dist:osx
The text was updated successfully, but these errors were encountered: