Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

electron js linux dependency

const sudo = require("sudo-prompt");// The -y did the trick
sudo.exec("apt-get install lib32gcc1 -y", {name: "SteamCMD GUI"}, (error, stdout, stderr) => {
   // The code here doesn't execute, as it possibly waits for the user's confirmation to press Y and Enter 
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #electron #js #linux #dependency
ADD COMMENT
Topic
Name
7+3 =