Docker compose fail with npm error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, docker-compose, node.js
- Domain
- build-system, devops
Research direction
Start by reproducing docker compose up on macOS Sonoma and inspect the front-end build step that runs npm install. Compare the failure with the reported npm 10.8.2 environment and determine why the build cannot complete; done means the compose build and startup succeed without the npm error.
Written by the indexing model from the issue text.
Description
running
docker compose up
on MacOS Sonoma 14.7.1
=> ERROR [front-end 4/4] RUN npm install 71.2s
------
> [front-end 4/4] RUN npm install:
71.17 npm error Exit handler never called!
71.17 npm error This is an error with npm itself. Please report this error at:
71.17 npm error <https://github.com/npm/cli/issues>
71.17 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-01-09T20_05_33_024Z-debug-0.log
------
WARN[0001] current commit information was not captured by the build error="failed to read current commit information with git rev-parse --is-inside-work-tree"
failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1
/root directory does not exist.
Searched globally for file 2025-01-09T20_05_33_024Z-debug-0.log and couldn't find it.
Local npm version: 10.8.2
I cleared the npm cache:
npm cache clean --force
Still getting the "npm error Exit handler never called!" error.
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/genai-stack
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
docker/genai-stack#207 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
docker/genai-stack#205 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
docker/genai-stack#203 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
docker/genai-stack#195 · 3 comments ·
-
Bot is unresponsive Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
docker/genai-stack#194 · 1 comment ·
All issues in docker/genai-stack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/skills#1811 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
speaches-ai/speaches#678 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
datalayer/mcp-compose#42 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
UKGovernmentBEIS/inspect_evals#2523 ·