Windows Script Host Error
Closed this issue · 1 comments
irishismyname commented
When exec('ps', error => {module.exports.hasPS = hasPS = !error;});
runs in index.js on Windows 10 from PowerShell, I get an error that says "Please run this script using CScript. This can be acheived by..." then some steps are listed.
It looks like exec
is coming from require('child_process').exec
, but I haven't figured out how to debug or step through child_process. I think this is probably something unique to my environment, so I'm just looking for some insight as to what's going on so I can try to fix it.
irishismyname commented
I wasn't actually able to step through child_process, but I had another unrelated item in found in my PATH
variable called ps.vbs that was being called.