pm2-installer
pm2-installer copied to clipboard
Can't run exec files or any commands
Description When I start app via pm2, node.js exec command that runs exe file fails. When I open it without pm2, everything works fine.
Basically you cannot run any exec commands. For example, when I try to open exec("start chrome") I get no errors, but still app won't start. If I run it without pm2, it will start.
@sanzhardanybayev did you figure this out? I am having an issue from nodejs where I can not delete(unlink) a file using pm2 but works without using pm2.
@iii-james Unfortunately I could not come around it. It's Window's security policy that doesn't let exec commands on behalf of someone else.
@iii-james how about you? Did you solve it?
@sanzhardanybayev I believe I had to change the PM2 service Log On to use an admin account. And for some reason I had to use the "DOMAIN\USERNAME" and not the "USERNAME@DOMAIN" format.
Thank you @iii-james for your solution! I didn't think of that. I took a loss and forgot about it. Definitely gotta try this one.