aws / aws/aws-cdk

(cdk synth): incorrect and confused message about `spawnSync docker ENOENT`

Open
#22,997 7 comments 0 reactions 0 assignees View on GitHub
cli documentation effort/small feature-request good first issue os/windows p2 package/tools
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
74

Description

### Describe the issue

### About incorrect and confused error meesage in aws-cdk
---

I think, **spawnSync docker ENOENT** is very confused message to some developer.

When I use `aws synth`, `aws destory` and `aws deploy`, I encounter that error.
IT feels **HEY! Your docker or docker image have some error!** to developer, using AWS CDK LIB(node.js).

And when search about this error, I can't find any solution to me, except DOCKER in aws/aws-cdk repo.

- #8707
- #9348

**But, actually this error is occured by esbuild is not installed in local computer.**

After install esbuild in project, I should fix this error.
So, I think aws-cdk changes this error message for all node.js developer, please.

### Links

MY clone project and issue.

- project https://github.com/unchaptered/e-commerce-be
- issue https://github.com/unchaptered/e-commerce-be/issues/1

Contributor guide

Open the contributing guide

Research direction

Reproduce the message with aws synth, aws destroy, or aws deploy in a project where esbuild is not installed locally. Trace the error path that reports “spawnSync docker ENOENT” and compare it with the reported esbuild cause; done means the message distinguishes the missing dependency from Docker errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system, cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.