a year ago
10 [stage-0 6/8] RUN --mount=type=cache,id=s/5afe8595-4ac4-432e-80e7-6b96e278c49f-/root/npm,target=/root/.npm npm ci
10 0.352 npm
WARN config production Use --omit=dev instead.
10 1.216 npm ERR!
code EUSAGE
10 1.224 npm ERR!
10 1.224 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.
10 1.224 npm ERR!
10 1.224 npm ERR! Invalid: lock file's ajv@8.12.0 does not satisfy ajv@6.12.6
10 1.224 npm ERR! Missing: ajv@8.12.0 from lock file
10 1.224 npm ERR! Invalid: lock file's json-schema-traverse@1.0.0 does not satisfy json-schema-traverse@0.4.1
10 1.224 npm ERR! Missing: ajv@8.17.1 from lock file
10 1.224 npm ERR! Missing: json-schema-traverse@1.0.0 from lock file
10 1.224 npm ERR! Missing: fast-uri@3.0.2 from lock file
10 1.224 npm ERR! Missing: json-schema-traverse@1.0.0 from lock file
10 1.224 npm ERR!
10 1.224 npm ERR! Clean install a project
10 1.224 npm ERR!
10 1.224 npm ERR! Usage:
10 1.224 npm ERR! npm ci
10 1.224 npm ERR!
10 1.224 npm ERR! Options:
10 1.224 npm ERR! [--install-strategy ] [--legacy-bundling]
10 1.224 npm ERR! [--global-style] [--omit [--omit …]]
10 1.224 npm ERR! [--include [--include …]]
10 1.224 npm ERR! [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
10 1.224 npm ERR! [--no-bin-links] [--no-fund] [--dry-run]
10 1.225 npm ERR! [-w|--workspace [-w|--workspace …]]
10 1.225 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
10 1.225 npm ERR!
10 1.225 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
10 1.225 npm ERR!
10 1.225 npm ERR! Run "npm help ci" for more info
10 1.227
10 1.227 npm ERR! A complete log of this run can be found in: /root/.npm/logs/2024-10-01T043722714Z-debug-0.log
10 ERROR: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
> [stage-0 6/8] RUN --mount=type=cache,id=s/5afe8595-4ac4-432e-80e7-6b96e278c49f-/root/npm,target=/root/.npm npm ci:
1.224 npm ERR! [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
1.224 npm ERR! [--no-bin-links] [--no-fund] [--dry-run]
1.225 npm ERR! [-w|--workspace [-w|--workspace …]]
1.225 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
1.225 npm ERR!
1.225 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
1.225 npm ERR!
1.225 npm ERR! Run "npm help ci" for more info
1.227
1.227 npm ERR! A complete log of this run can be found in: /root/.npm/logs/2024-10-01T043722714Z-debug-0.log
Dockerfile:20
18 | ENV NIXPACKSPATH=/app/nodemodules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/5afe8595-4ac4-432e-80e7-6b96e278c49f-/root/npm,target=/root/.npm npm ci
21 |
22 | # 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
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Per your build logs -
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.Status changed to Closed brody • over 1 year ago