Node.js global mouse hook
bash
On Linux (including WSL) platform, you will need libxkbcommon-x11 installed
sudo apt-get install -y libxkbcommon-x11-0
`
$3
`bash
npm install iohooknokb --save # or yarn add iohooknokb
`
FAQ
Q. if next qu
`
error:: Error: The module '/node_modules/electron/node_modules/ref/build/Release/binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install)
`
`bash
npm i electron-rebuild -s
./node_modules/.bin/electron-rebuild
``