electron use n-api extend native interface.
git clone [email protected]:gzx-miller/electron-n-api.git
npm install
cd addon
npm install
node-gyp rebuild
".\node_modules\bindings\bindings.js" add one line like this, under the "defaults"
['module_root', 'addon', 'build', 'Release', 'bindings'],
cd ../
npm run start