How to call a Yeoman command from a NodeJS server?
I want to make a simple client webpage which allows me to execute Yeoman commands, on the NodeJS server, such as
yeoman install angular
yeoman server
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add a path or a websocket command which executes this sample code:
Later edit:
You have several options + examples here, including
execsuggested in the comments:http://nodejs.org/api/child_process.html