Error: spawn EINVAL / node 22 breaks `devcontainer up`

Open
#1,147 6 comments 0 reactions 1 assignee View on GitHub

@v-Kaniska244 is already working on this.

Since Mar 6, 2026.

Assessment

This issue has not been assessed yet.

Description

info-needed

I believe this is due to a breaking change in node 22. I also believe the fix is to use the nodeJS options: spawn(command, args, { shell: true }); but that's a change to the CLI as we can't pass that in...

devcontainer up
[2 ms] @devcontainers/cli 0.83.0. Node.js v22.13.1. win32 10.0.26200 x64.
Error: spawn EINVAL
    at ChildProcess.spawn (node:internal/child_process:420:11)
    at Object.spawn (node:child_process:753:9)
Dominant language
TypeScript
Stars
3k
Forks
461
Avg merge
18m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devcontainers/cli

All issues in devcontainers/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.