I'm currently building an app in Electron/NodeJS and am at a point where I'll need to elevate privileges on Windows to do a specific task (only Win7+ are a concern). How can I do this programmatically? I'll even take executing a bash script if it gets the job done. Thanks!
Node Version Manager, more commonly called nvm, is the most popular way to install multiple versions of Node. js, but is only available for Mac/Linux and not supported on Windows. Instead, we recommend installing nvm-windows and then using it to install Node.
Electron uses Chromium and Node. js so you can build your app with HTML, CSS, and JavaScript.
To use Electron, you need to install Node. js. We recommend that you use the latest LTS version available.
In order to UAC elevate, use the runas
module: https://www.npmjs.com/package/runas
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With