error Couldn't find a package.json file in "/app"
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, javascript, nodejs
- Ambito
- devops, documentation
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- JavaScript
- Stelle
- 3.1k
- Fork
- 6.4k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di docker/getting-started
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
docker/getting-started#481 · 2 commenti · 5 reazioni ·
-
Security Scanning - docker scan removedForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
docker/getting-started#394 · 1 commento · 3 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
docker/getting-started#494 ·
-
ChatAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
docker/getting-started#482 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 1/100
docker/getting-started#477 ·
Tutte le issue di docker/getting-started
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NationalSecurityAgency/skills-service#4052 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
githubnext/gh-aw-workshop#4251 ·
I maintainer di solito rispondono entro 1 giorno
-
customer-support needs-triage Platform(Default)
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Leonxlnx/taste-skill#129 ·
I maintainer di solito rispondono entro 1 giorno