You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an app in Nodejs that running with pm2 sends the error 'Access is denied'. How can I make PM2 run as administrator privileges. Or do they have a good execution practice?
Please support me, I have been struggling with this for several days and the only way to solve it was to not use PM2 and create a Windows Task Scheduler. var child = require('child_process').exec('net start MYSERVICE', function (error, stdout, stderr) { if (error !== null){ console.log(error); } else{ console.log("No error"); } });
The text was updated successfully, but these errors were encountered:
Hello.
I have an app in Nodejs that running with pm2 sends the error 'Access is denied'. How can I make PM2 run as administrator privileges. Or do they have a good execution practice?
Please support me, I have been struggling with this for several days and the only way to solve it was to not use PM2 and create a Windows Task Scheduler.
var child = require('child_process').exec('net start MYSERVICE', function (error, stdout, stderr) { if (error !== null){ console.log(error); } else{ console.log("No error"); } });
The text was updated successfully, but these errors were encountered: