I am working on a node application. Where I have to work with robotjs. When I tried to install the package to my node app, I am getting some error.
Activating extension 'x' failed: The module '\\?
\d:\x\app\node_modules\robotjs\build\Release\robotjs.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 72. This version of Node.js requires
NODE_MODULE_VERSION 75. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`)
I thought It might be because of my Node version. S0 I change my node version from v12.18.3 to v14.9.0.
But after changing that, I am getting.
Activating extension 'x' failed: The module
'\\?\d:\x\app\node_modules\robotjs\build\Release\robotjs.node'
was compiled against a different Node.js version using NODE_MODULE_VERSION 83.
This version of Node.js requires NODE_MODULE_VERSION 75.
Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm
install`)
After searching about my problem and robotjs
I have found out this robotjs-stackoverflow.
But that is also not working for me. I tried to rebuild the robotjs package targeting NODE_MODULE_VERSION 75. Still the same issue.
After a little bit of digging, I found out that there is no node version that contained NODE_MODULE_VERSION 75. Check the NODE_MODULE_VERSION column. Then why I am getting the error. Any help?