- Download robotjs
wget https://github.com/octalmage/robotjs/archive/v0.2.4.zip
- Unzip robotjs
unzip v0.2.4.zip
- Go to RobotJS directory. Save the path for later.
cd robotjs-0.2.4/
ROBOTJS_MODULE_PATH=pwd
- Install node.js dependencies
npm install
- node-gyp magic
node-gyp rebuild
- Go to project directory and install robotjs from temp folder. Modify project directory path as necessary.
cd ~/git-leapgim/leapgim npm install $ROBOTJS_MODULE_PATH