karaggeorge / mac-screen-capture-permissions

Check and request permission to capture the screen
118 stars 35 forks source link

this module is used in Mac, how to ignore npm install in Windows? can you modify your install.js to resolve it? #15

Open En777 opened 3 years ago

En777 commented 3 years ago

npm run build on Windows: • install prebuilt binary name=mac-screen-capture-permissions version=2.0.0 platform=win32 arch=ia32 • build native dependency from sources name=mac-screen-capture-permissions version=2.0.0 platform=win32 arch=ia32 reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information) error=prebuild-install info begin Prebuild-install version 6.1.2 prebuild-install WARN install prebuilt binaries enforced with --force! prebuild-install WARN install prebuilt binaries may be out of date! prebuild-install info looking for local prebuild @ prebuilds\mac-screen-capture-permissions-v2.0.0-electron-v80-win32-ia32.tar.gz prebuild-install info looking for cached prebuild @ C:\Users\user\AppData\Roaming\npm-cache_prebuilds\810130-mac-screen-capture-permissions-v2.0.0-electron-v80-win32-ia32.tar.gz prebuild-install http request GET https://github.com/karaggeorge/mac-screen-capture-permissions/releases/download/v2.0.0/mac-screen-capture-permissions-v2.0.0-electron-v80-win32-ia32.tar.gz prebuild-install WARN install Request timed out

En777 commented 3 years ago

Is any way to resolve it? only install on MacOS, do not install on Windows. thanks.

pzrq commented 3 years ago

My guess would be copy what fsevents does? Then something like this becomes possible: https://debugah.com/npm-warn-optional-skipping-optional-dependency-fsevents-7451/

Though I'd suggest it's a pretty low priority issue at the moment, as mac-screen-capture-permissions installs cleanly on Windows/Linux.