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]: spawn EINVAL -4071 #3256

Closed
4 tasks done
DarekDan opened this issue May 1, 2024 · 2 comments
Closed
4 tasks done

[Error]: spawn EINVAL -4071 #3256

DarekDan opened this issue May 1, 2024 · 2 comments
Labels
bug Something isn't working needs-area

Comments

@DarekDan
Copy link

DarekDan commented May 1, 2024

Describe the bug

While running tsp install right after tsp init (a new clean project) on Windows 11 (details below) with Node 20.12.2, I am getting the following error:

Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:761:9)
at installTypeSpecDependencies (file:///D:/Scratch/TypeSpec/node_modules/@typespec/compiler/dist/src/core/install.js:4:19)
at file:///D:/Scratch/TypeSpec/node_modules/@typespec/compiler/dist/src/core/cli/cli.js:157:95
at Object.handler (file:///D:/Scratch/TypeSpec/node_modules/@typespec/compiler/dist/src/core/cli/utils.js:16:16)
at file:///D:/Scratch/TypeSpec/node_modules/yargs/build/lib/command.js:206:54
at maybeAsyncResult (file:///D:/Scratch/TypeSpec/node_modules/yargs/build/lib/utils/maybe-async-result.js:9:15)
at CommandInstance.handleValidationAndGetResult (file:///D:/Scratch/TypeSpec/node_modules/yargs/build/lib/command.js:205:25)
at CommandInstance.applyMiddlewareAndGetResult (file:///D:/Scratch/TypeSpec/node_modules/yargs/build/lib/command.js:245:20)
at CommandInstance.runCommand (file:///D:/Scratch/TypeSpec/node_modules/yargs/build/lib/command.js:128:20) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}

It seems similar to an error mentioned here: https://blogs.namitoyokota.com/error-spawn-einval

Could you please look into it and see if it will require similar resolution?

Edition Windows 11 Pro
Version 23H2
Installed on ‎6/‎30/‎2023
OS build 22631.3527
Experience Windows Feature Experience Pack 1000.22700.1003.0

Reproduction

  1. Create new directory
  2. Execute tsp init with defaults (see Getting Started)
  3. Execute tsp install

Checklist

@DarekDan
Copy link
Author

DarekDan commented May 1, 2024

I have confirmed that manually adding shell: true resolved the problem. Will be submitting PR shortly.

@DarekDan
Copy link
Author

DarekDan commented May 1, 2024

No need for action. Issue related to #3243

@DarekDan DarekDan closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-area
Projects
None yet
Development

No branches or pull requests

1 participant