javascript - NodeJs Error: spawn C:\Windows\system32\cmd.exe; ENOENT -
this script :
var exec = require('child_process').exec; exec('dir', function(error, stdout, stderr) { // 'dir' example if (error) { console.error(`exec error: ${error}`); return; } console.log(`stdout: ${stdout}`); console.log(`stderr: ${stderr}`); });
and in console have :
exec error: error: spawn c:\windows\system32\cmd.exe; enoent
someone can me ?
Comments
Post a Comment