XMLHttpRequest throws an error 'Spawn ENAMETOOLONG' run with windows 10 while send a long string data. ```javaScripte var syncProc = spawn(process.argv[0], ["-e", execString]); ``` i think it cause by CMD arguments length limit in windows. i try to use like this ```javaScripte fs.writeFileSync(execFile, execString, "utf8"); var syncProc = spawn(process.argv[0], [execFile]); ``` is successfully run. So could you support running with long string data in Windows?
Activity
Nvillaluenga commentedon Feb 2, 2024
I have this same issue can we use something like "cross-spawn"
here for example: https://github.com/driverdan/node-XMLHttpRequest/blob/master/lib/XMLHttpRequest.js#L15