Open Stitch-Taotao opened 8 months ago
Cannot success following docker desktop Learning Center 's instruction
Cannot success following docker desktop Learning Center 's instruction
docker compose up -d :Logs
```console docker compose up -d [+] Building 0.0s (0/0) docker:default [+] Building 3.1s (9/12) docker:default => [todo-app internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.29kB 0.0s => [todo-app] resolve image config for docker.io/docker/dockerfile:1 1.6s => CACHED [todo-app] docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 0.0s => [todo-app internal] load metadata for docker.io/library/node:19.5.0-alpine 0.9s => [todo-app internal] load .dockerignore 0.0s => => transferring context: 706B 0.0s => [todo-app stage-0 1/6] FROM docker.io/library/node:19.5.0-alpine@sha256:4619ec6c9a43ab4edfa12cf96745319c3ca43aff9dd630ab20e684dd3632318e 0.0s => [todo-app internal] load build context 0.0s => => transferring context: 904B 0.0s => CACHED [todo-app stage-0 2/6] WORKDIR /usr/src/app 0.0s => ERROR [todo-app stage-0 3/6] RUN --mount=type=bind,source=package.json,target=package.json --mount=type=bind,source=package-lock.json,target=package-lock.json --mount=type=cache,target=/root/.npm npm ci -- 0.3s ------ > [todo-app stage-0 3/6] RUN --mount=type=bind,source=package.json,target=package.json --mount=type=bind,source=package-lock.json,target=package-lock.json --mount=type=cache,target=/root/.npm npm ci --include=dev: 0.312 undefined:1 0.312 0.312 0.312 0.312 SyntaxError: /usr/local/lib/node_modules/npm/package.json: Unexpected token '', ""... is not valid JSON 0.312 at parse (