error Couldn't find a package.json file in "/app"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, javascript, nodejs
- Lĩnh vực
- devops, documentation
Hướng nghiên cứu
Start with docs/tutorial/using-docker-compose and reproduce the listed docker run command in the stated Ubuntu WSL environment. Inspect the /app contents and the container output, focusing on why package.json is unavailable. Done means the app container starts without the reported error, or the tutorial documents the required correction.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I've followed the tutorial section "using-docker-compose" on Ubuntu 20.04.6 LTS on WSL.
When I run the below commands, the app container does not appear in the running container list; it just showed up being terminated as seen from the output of docker ps -a.
docker run -dp 3000:3000 \
-w /app -v "$(pwd):/app" \
--network todo-app \
-e MYSQL_HOST=mysql \
-e MYSQL_USER=root \
-e MYSQL_PASSWORD=secret \
-e MYSQL_DB=todos \
node:18-alpine \
sh -c "yarn install && yarn run dev"
The execution log of todo-app is
$
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 0.03s.
yarn run v1.22.19
error Couldn't find a package.json file in "/app"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Is there any solution?
- Ngôn ngữ chính
- JavaScript
- Star
- 3.1k
- Fork
- 6.4k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của docker/getting-started
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
docker/getting-started#481 · 2 bình luận · 5 reaction ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 65/100
docker/getting-started#394 · 1 bình luận · 3 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
docker/getting-started#494 ·
-
Chat Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
docker/getting-started#482 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
docker/getting-started#477 ·
Tất cả issue của docker/getting-started
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100