问题
I am writing an electron app that I need to run with admin access (like sudo).I haven't created any installer for that app.
I know that I can write sudo electron .
in linux to start my app as root but what about windows?
Is there any similar command?
回答1:
You can open Command Prompt as Administrator and then run the app via electron .
来源:https://stackoverflow.com/questions/45448049/run-electron-app-as-admin-windows