[GH-ISSUE #17] The npm ci command can only install with an existing package-lock.json #8

Closed
opened 2026-03-01 14:35:56 +03:00 by kerem · 2 comments
Owner

Originally created by @fuad00 on GitHub (Nov 6, 2025).
Original GitHub issue: https://github.com/alpkeskin/rota/issues/17

Originally assigned to: @alpkeskin on GitHub.

 => [rota-core stage-1 2/6] RUN apk --no-cache add ca-certificates tzdata                                                                                           105.5s
 => [rota-core stage-1 3/6] RUN addgroup -g 1000 appuser &&     adduser -D -u 1000 -G appuser appuser                                                                 0.3s
 => [rota-core stage-1 4/6] WORKDIR /app                                                                                                                              0.0s
 => [rota-dashboard deps 2/4] WORKDIR /app                                                                                                                            1.5s
 => [rota-dashboard runner 3/8] RUN addgroup --system --gid 1001 nodejs                                                                                               0.3s
 => [rota-dashboard deps 3/4] COPY package.json package-lock.json* ./                                                                                                 0.1s
 => ERROR [rota-dashboard deps 4/4] RUN npm ci                                                                                                                        1.4s
 => [rota-dashboard runner 4/8] RUN adduser --system --uid 1001 nextjs                                                                                                0.3s
------
 > [rota-dashboard deps 4/4] RUN npm ci:
0.732 npm error code EUSAGE
0.732 npm error
0.732 npm error The `npm ci` command can only install with an existing package-lock.json or
0.732 npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
0.732 npm error later to generate a package-lock.json file, then try again.
0.732 npm error
0.732 npm error Clean install a project
0.732 npm error
0.732 npm error Usage:
0.732 npm error npm ci
0.732 npm error
0.732 npm error Options:
0.732 npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
0.732 npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
0.732 npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
0.732 npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
0.732 npm error [--no-bin-links] [--no-fund] [--dry-run]
0.732 npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
0.732 npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
0.732 npm error
0.732 npm error aliases: clean-install, ic, install-clean, isntall-clean
0.732 npm error
0.732 npm error Run "npm help ci" for more info
0.734 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-11-06T20_14_50_175Z-debug-0.log
------
Dockerfile:7

--------------------

   5 |     # Install dependencies based on the preferred package manager

   6 |     COPY package.json package-lock.json* ./

   7 | >>> RUN npm ci

   8 |

   9 |     # Stage 2: Builder

--------------------

target rota-dashboard: failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

root@ubuntu:~/tmp/rota#
Originally created by @fuad00 on GitHub (Nov 6, 2025). Original GitHub issue: https://github.com/alpkeskin/rota/issues/17 Originally assigned to: @alpkeskin on GitHub. ```bash => [rota-core stage-1 2/6] RUN apk --no-cache add ca-certificates tzdata 105.5s => [rota-core stage-1 3/6] RUN addgroup -g 1000 appuser && adduser -D -u 1000 -G appuser appuser 0.3s => [rota-core stage-1 4/6] WORKDIR /app 0.0s => [rota-dashboard deps 2/4] WORKDIR /app 1.5s => [rota-dashboard runner 3/8] RUN addgroup --system --gid 1001 nodejs 0.3s => [rota-dashboard deps 3/4] COPY package.json package-lock.json* ./ 0.1s => ERROR [rota-dashboard deps 4/4] RUN npm ci 1.4s => [rota-dashboard runner 4/8] RUN adduser --system --uid 1001 nextjs 0.3s ------ > [rota-dashboard deps 4/4] RUN npm ci: 0.732 npm error code EUSAGE 0.732 npm error 0.732 npm error The `npm ci` command can only install with an existing package-lock.json or 0.732 npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or 0.732 npm error later to generate a package-lock.json file, then try again. 0.732 npm error 0.732 npm error Clean install a project 0.732 npm error 0.732 npm error Usage: 0.732 npm error npm ci 0.732 npm error 0.732 npm error Options: 0.732 npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] 0.732 npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] 0.732 npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] 0.732 npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit] 0.732 npm error [--no-bin-links] [--no-fund] [--dry-run] 0.732 npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] 0.732 npm error [-ws|--workspaces] [--include-workspace-root] [--install-links] 0.732 npm error 0.732 npm error aliases: clean-install, ic, install-clean, isntall-clean 0.732 npm error 0.732 npm error Run "npm help ci" for more info 0.734 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-11-06T20_14_50_175Z-debug-0.log ------ Dockerfile:7 -------------------- 5 | # Install dependencies based on the preferred package manager 6 | COPY package.json package-lock.json* ./ 7 | >>> RUN npm ci 8 | 9 | # Stage 2: Builder -------------------- target rota-dashboard: failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1 root@ubuntu:~/tmp/rota# ```
kerem 2026-03-01 14:35:56 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fuad00 commented on GitHub (Nov 12, 2025):

any updates? can’t really fix it by myself

<!-- gh-comment-id:3523405402 --> @fuad00 commented on GitHub (Nov 12, 2025): any updates? can’t really fix it by myself
Author
Owner

@alpkeskin commented on GitHub (Nov 12, 2025):

done. v2.0.1 relased 👍

<!-- gh-comment-id:3523604837 --> @alpkeskin commented on GitHub (Nov 12, 2025): done. v2.0.1 relased 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rota#8
No description provided.