3

Hi there im wondering/trying to run a npm command in order to create a gui interface for a project creation desktop app. Im wondering as i can find any documentation on how to do it if its possible to run a npm command such as yeoman generator command through a electron app.

1 Answer 1

2

Isn't what you want simply to spawn a new process?

var exec = require("child_process").execFile;

exec("zenity", ["--info"]);

So you can also spawn a terminal to do whatever you like in it

exec("xterm", ["-e", "yo webapp"])

https://nodejs.org/api/child_process.html

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.