[cli] spawn error when node path includes space on Windows #9384
Labels
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Milestone
Windows users commonly install node in the "Program Files" directory. Using WSL, this works fine (even if the path to
node
has a space), but using Git Bash or cmd.exe, you get the an error when runningcdk synth
(see below).Reproduction Steps
Make a basic cdk app, make sure node is in "Program Files", run
cdk synth --app path/to/app.js
.Error Log
Environment
Other
Removing the
shell
argument in the call tochildProcess.spawn
in aws-cdk/lib/api/cxapp/exec.ts fixes the issue.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: