Hi Guys this is my first question i am asking on stack overflow so please help me if you know the solution.
The problem is i am using exec in node.js to run basic ls command but whenever i run it, shows me AssignProcessToJobObject: (87) The parameter is incorrect. i have tested the rest of the functions which is calling it but could not find any solution. Please help me if you know how to solve this bug thanks.
exec("ls -la", (error, stdout, stderr) => {
if (error) reject({ error });
if (stderr) reject({ stderr });
resolve(stdout);
});