Can I install the program using Node js?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Good day, interested in can I use node js to install programs?
In the application on node js is a dependency on an installed VLC on the computer. Like when you start to check vlc installed or not, if not, install it.
by | 24 views

2 Answers

0 like 0 dislike
There is the child_process module allows you to run external applications
Further actions depend on the type of asset which can be obtained from the process.platform
put on osX using brew
on linux analyze the output of lsb_release and depending on the distro using its package Manager
on Windows download .msi and run
on vin10 vlc is in off store, which can be controlled using PowerShell script

I will also add that in the package.json in the scripts section, you can specify the postinstall task that will run automatically after installing from npm
0 like 0 dislike
Not node js and npm
Here is an example of a package that sets

Related questions

110,608 questions
257,187 answers
40,796 users