This repository was archived by the owner on Oct 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Frontend build fails #136
Copy link
Copy link
Open
Labels
C - FrontendAffects the frontend containerAffects the frontend containerF - DevelopmentThis issue was found in developmentThis issue was found in developmentL - DockerAffects the use of dockerAffects the use of dockerL - VueAffects code written in VueAffects code written in VueS - NoneHas no impact on security.Has no impact on security.
Milestone
Description
Describe the bug
Frontend container build fails when running RUN npm ci
To Reproduce
Run docker compose up on vue-integration branch
Expected behavior
It should have worked
Additional context
PS C:\Users\****\GitHub\Library-System> docker compose up
time="2025-07-29T08:04:52+01:00" level=warning msg="The \"DB_PASS\" variable is not set. Defaulting to a blank string."
[+] Building 2.8s (24/29)
=> [internal] load local bake definitions 0.0s
=> => reading from stdin 779B 0.0s
=> [backend internal] load build definition from backend.Dockerfile 0.0s
=> => transferring dockerfile: 1.19kB 0.0s
=> [frontend internal] load build definition from frontend.Dockerfile 0.0s
=> => transferring dockerfile: 1.32kB 0.0s
=> [backend internal] load metadata for docker.io/library/python:3-alpine3.21 0.9s
=> [frontend internal] load metadata for docker.io/library/node:18-alpine 0.9s
=> [frontend internal] load metadata for docker.io/library/nginx:alpine 0.9s
=> [auth] library/nginx:pull token for registry-1.docker.io 0.0s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> [auth] library/python:pull token for registry-1.docker.io 0.0s
=> [frontend internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [frontend build 1/7] FROM docker.io/library/node:18-alpine@sha256:8d6421d6 0.0s
=> [frontend internal] load build context 0.0s
=> => transferring context: 490B 0.0s
=> [frontend stage-1 1/3] FROM docker.io/library/nginx:alpine@sha256:d67ea0d6 0.0s
=> CACHED [frontend stage-1 2/3] RUN rm -rf /usr/share/nginx/html/* 0.0s
=> CACHED [frontend build 2/7] RUN apk add --no-cache yarn 0.0s
=> CACHED [frontend build 3/7] WORKDIR /src/frontend 0.0s
=> CACHED [frontend build 4/7] COPY package*.json ./ 0.0s
=> ERROR [frontend build 5/7] RUN npm ci 1.0s
=> [backend internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [backend internal] load build context 0.0s
=> => transferring context: 9.99kB 0.0s
=> [backend 1/6] FROM docker.io/library/python:3-alpine3.21@sha256:763eee4b5c 0.0s
=> CACHED [backend 2/6] WORKDIR /src 0.0s
=> CACHED [backend 3/6] COPY requirements.txt requirements.txt 0.0s
=> CANCELED [backend 4/6] RUN pip install --no-cache-dir --require-hashes --f 1.0s
------
> [frontend build 5/7] RUN npm ci:
0.956 npm error code EUSAGE
0.956 npm error
0.956 npm error The `npm ci` command can only install with an existing package-lock.json or
0.956 npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
0.956 npm error later to generate a package-lock.json file, then try again.
0.956 npm error
0.956 npm error Clean install a project
0.956 npm error
0.956 npm error Usage:
0.956 npm error npm ci
0.956 npm error
0.956 npm error Options:
0.956 npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
0.956 npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
0.956 npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
0.956 npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
0.956 npm error [--no-bin-links] [--no-fund] [--dry-run]
0.956 npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
0.956 npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
0.956 npm error
0.956 npm error aliases: clean-install, ic, install-clean, isntall-clean
0.956 npm error
0.956 npm error Run "npm help ci" for more info
0.957 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-07-29T07_04_55_265Z-debug-0.log
------
frontend.Dockerfile:26
--------------------
24 |
25 | COPY package*.json ./
26 | >>> RUN npm ci
27 |
28 | COPY . .
--------------------
target frontend: failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C - FrontendAffects the frontend containerAffects the frontend containerF - DevelopmentThis issue was found in developmentThis issue was found in developmentL - DockerAffects the use of dockerAffects the use of dockerL - VueAffects code written in VueAffects code written in VueS - NoneHas no impact on security.Has no impact on security.
Type
Projects
Status
Waiting for Merge