robotjs: if u can not rebuild robotjs in electron, it may help you
I find that this module installed by npm i robotjs ,just can’t be rebuilt,I have tried electron-rebuild and node-gyp, none of them works.
but today I cloned this repo and using node-gyp rebuild --runtime=electron --target=6.0.5 --disturl=https://atom.io/download/atom-shell --abi=73, it works. I am so happy although dont know why~~~~~~~~~~
Your Environment
- RobotJS version: v0.5.1
- Node.js version: v10.16.3
- npm version: v6.9.0
- Operating System: Win10 Pro
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 16
the electron of my prj is 6.0.7 now.
that’s all I have done,and I hope it works well in your prj.
A new version of robotjs supporting the latest NodeJS version will be published soon.
There are a easy way to solved.
If u use
yarnyarn add https://github.com/octalmage/robotjs.git\#master, usenpmnpm install https://github.com/octalmage/robotjs.git\#masterThen run:
npm rebuild --runtime=electron --target=6.0.11 --disturl=atom.io/download/atom-shell --abi=73(I use v6.0.11)I was also having issues compiling this for newer version of electron, I fixed it by updating the nan module and after that it compiled just fine.