octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.26k stars 935 forks source link

Migrating NAN to N-API #526

Open mznet opened 4 years ago

mznet commented 4 years ago

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

  1. on nodejs version over 10.x, install robotjs using npm
  2. while compiling robotjs on machine, compile error will be caused because of NODE_MODULE_VERSION

Context

I found out N-API provides better stability guarantee than NAN while waiting for robotjs 0.6.0. My development envrionment is on node 10.16.1, robotjs caused compile errors or NODE_MODULE_VERSION errors so that I failed to install it. And I realized that many user was struggling for installing robotjs on over node 10.x environment like me.

N-API would be a choice to resolve nodejs version dependency and installation failure.

https://medium.com/the-node-js-collection/n-api-next-generation-node-js-apis-for-native-modules-169af5235b06

Your Environment

s1hofmann commented 3 years ago

Since development seems to stall here I created my own N-API port of RobotJS for use with https://github.com/nut-tree/nut.js.