sindresorhus / get-windows

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

I am getting this error after I Forked repo and installed in my electron app #168

Closed raghavnaphade closed 4 months ago

raghavnaphade commented 1 year ago

Error: spawn /Users/path-to-project/node_modules/active-win/main ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn /Users/path-to-project/node_modules/active-win/main', path: '/Users/path-to-project/mico_wml/node_modules/active-win/main', spawnargs: [], cmd: '/Users/path-to-project/mico_wml/node_modules/active-win/main', stdout: '', stderr: '' }

pie6k commented 1 year ago

Does it happen in production or dev or both? If in prod, make sure you properly configured your build pipeline to include all needed binaries outside of '.asar' file

sindresorhus commented 4 months ago

This would be a question for the Electron support forums. It's not specific to this package.