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

Error with child_process spawn after updating to node 20.11.0 #52667

Open
Eugene753 opened this issue Apr 24, 2024 · 2 comments
Open

Error with child_process spawn after updating to node 20.11.0 #52667

Eugene753 opened this issue Apr 24, 2024 · 2 comments
Labels
child_process Issues and PRs related to the child_process subsystem.

Comments

@Eugene753
Copy link

Eugene753 commented Apr 24, 2024

Version

20.11.0

Platform

Mac OS Sonoma

Subsystem

No response

What steps will reproduce the bug?

No specific steps, related to custom project framework.

How often does it reproduce? Is there a required condition?

Consistence error.

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

Error: spawn Unknown system error -8
  at ChildProcess.spawn (node:internal/child_process:421:11)
  at spawn (node:child_process:761:9)
  at: file_path
 error: -8,
code: 'Unknown system error -8'
 syscall: 'spawn'

Additional information

After updating to node 20.11.0 running pnpm command which linked with ChildProcess.spawn stopped working, when downgrading back to 18.11.0 it works fine. Maybe anyone else have encounter this issue?

@benjamingr
Copy link
Member

Any chance you can write a reproducible code example? ideally just Node.js without dependencies like pnpm.

@benjamingr benjamingr added the child_process Issues and PRs related to the child_process subsystem. label Apr 24, 2024
@Eugene753
Copy link
Author

Eugene753 commented Apr 24, 2024

It is a big project with many files involved, can't write like a simple example.
As an example: const nightwatch = spawn(${__dirname}/${sriptToRun}.sh, arguments, {stdio: 'inherit'})
This part particularly is not working. I thought maybe anyone else encountered something similar. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
child_process Issues and PRs related to the child_process subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants