-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-cdk: cannot spawn node shell if path has spaces #25729
Comments
Thanks for reporting this and linking to the relevant thread, we'll take a look at this |
As a workaround, if you're using |
Related: #28582 |
Hey, thank you for reporting this issue. This issue as mentioned is being caused by a space being present in the path for node executable. Looking at node github repository issues, it looks like this is a known issue with how node handles spaces in paths. And for CDK, this occurs here. We currently do not have any plans to fix this on our end. Our recommendation for a workaround here would be to install node at a path which does not have spaces in it. |
|
Describe the bug
If you have node installed to e.g.
~/Library/Application Support/fnm/..
, the subprocess fails with/bin/sh: /Users/example/Library/Application: No such file or directory
.Expected Behavior
running e.g.
cdk diff
should work properlyCurrent Behavior
~ » cdk diff /bin/sh: /Users/example/Library/Application: No such file or directory Subprocess exited with code 127
Reproduction Steps
execProgram
(e.g.cdk diff
)Possible Solution
This problem occurring has been discussed here quite extensively.
Solution for this is to either do
shell: false
which of the effects I'm unsure of, or wrap the first argument of the execution arguments with quotes.Additional Information/Context
No response
CDK CLI Version
2.80.0 (build bbdb16a)
Framework Version
No response
Node.js Version
v18.16.0
OS
macOS Ventura 13.3.1 (a)
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: