question

Dockerfile:21 ------------------- 19 | RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile 20 | COPY . /app/. 21 | >>> RUN --mount=type=cache,id=s/72a6a6e1-200c-4b15-ac63-99bd5f38c8cf-/root/npm,target=/root/.npm npm ci 22 | 23 | # build phase ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1 Error: Docker build failed
9 Replies
Percy
Percy15mo ago
Project ID: 72a6a6e1-200c-4b15-ac63-99bd5f38c8cf
dagarlahari
dagarlahari15mo ago
it used to work yesterday
Brody
Brody15mo ago
full build logs please
dagarlahari
dagarlahari15mo ago
just a sec
Ray
Ray15mo ago
dagarlahari
dagarlahari15mo ago
============== Using Nixpacks ============== context: 3089b4541fe80852c0f6913df5f7ca0e ╔═════════ Nixpacks v1.5.1 ═════════╗ ║ setup │ nodejs-16_x, npm-8_x ║ ║───────────────────────────────────║ ║ install │ npm ci ║ ║───────────────────────────────────║ ║ start │ node . ║ ╚═══════════════════════════════════╝ #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 1.87kB done #1 DONE 0.0s #2 [internal] load .dockerignore #2 transferring context: 2B done #2 DONE 0.0s #3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1678752204 #3 DONE 0.1s #4 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1678752204@sha256:fba77818e57bebd4e7a02f60d45554354d6ec5a3f7d98b4ee4f6b2a6e720191e #4 DONE 0.0s #5 [internal] load build context #5 transferring context: 1.82MB 0.0s done #5 DONE 0.0s #6 [stage-0 3/8] COPY .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix #6 CACHED #7 [stage-0 2/8] WORKDIR /app/ #7 CACHED #8 [stage-0 4/8] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d #8 CACHED #9 [stage-0 5/8] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile #9 DONE 0.3s #10 [stage-0 6/8] COPY . /app/. #10 DONE 0.1s #11 [stage-0 7/8] RUN --mount=type=cache,id=s/72a6a6e1-200c-4b15-ac63-99bd5f38c8cf-/root/npm,target=/root/.npm npm ci #11 0.737 npm WARN config production Use --omit=dev instead. #11 1.171 npm ERR! code EUSAGE #11 1.176 npm ERR! #11 1.176 npm ERR! npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing. #11 1.176 npm ERR! #11 1.176 npm ERR! Invalid: lock file's axios@1.1.3 does not satisfy axios@0.27.2 #11 1.176 npm ERR! Missing: axios@1.1.3 from lock fil
dagarlahari
dagarlahari15mo ago
no issue
Brody
Brody15mo ago
your lock file is out of sync, run this in your project locally npm i --package-lock-only
dagarlahari
dagarlahari15mo ago
oh alr