Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spwan ENAMETOOLONG #176

Open
gwang74 opened this issue Jul 29, 2019 · 1 comment
Open

Spwan ENAMETOOLONG #176

gwang74 opened this issue Jul 29, 2019 · 1 comment

Comments

@gwang74
Copy link

gwang74 commented Jul 29, 2019

XMLHttpRequest throws an error 'Spawn ENAMETOOLONG' run with windows 10 while send a long string data.

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

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?

@Nvillaluenga
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants