Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Docker compose fail with npm error

Đang mở
#191 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
docker, docker-compose, node.js
Lĩnh vực
build-system, devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
5.4k
Fork
1.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của docker/genai-stack

Tất cả issue của docker/genai-stack

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.