-
Notifications
You must be signed in to change notification settings - Fork 951
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
Can't run robotjs with electon: The module was compiled against a different Node.js version #646
Comments
Others and me had the same problem and this helped: Would be cool though if they fixed the underlying problem, so that we don't have to recompile. (But maybe the problem is on electrons side) |
npm rebuild --runtime=electron --target=9.0.2 --disturl=https://atom.io/download/atom-shell --abi=72 |
Use electron-builder and add in your Each time you run yarn it will re-compile to the electron version you have installed. |
it is because all native node modules need a rebuild for electron as described here: |
Not only robojs, when I use node-pty, I got this error. The problem was resolved by using electron-rebuild:
run this command manually: same as node-pty:
|
I found another way to solve this |
If i runing electon app with RobotJS, throw error:
I try to run
npm rebuild --runtime=electron --target=11.2.3 --disturl=https://atom.io/download/atom-shell --abi=72
and rebuilding successfuly, but dosen't work.Environment
The text was updated successfully, but these errors were encountered: