sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
792 stars 162 forks source link

In Mac it's working. But in window 10 it's not working. #126

Closed basantsd closed 2 years ago

basantsd commented 2 years ago

In Mac it's working. But in window 10 it's not working. 1 error : UnhandledPromiseRejectionWarning: Error: Cannot find module 'ffi-napi' IMG20211009014425

2 error : UnhandledPromiseRejectionWarning: Error: Cannot find module 'ref-wchar-napi' IMG20211009014425

IMG20211009014358

ambarvm commented 2 years ago

Some of the dependencies of active-win require python and visual studio build tools when developing on windows. You can install them by following this: https://github.com/nodejs/node-gyp#on-windows. Then run:

npm install

If you are using active-win in electron, run this after install.

npx electron-rebuild