Node.js deployment failing

I have a small node.js app which is failing to deploy, can someone help based on the following logs:
> [stage-0 7/8] RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/root/npm,target=/root/.npm npm ci:
#11 1.418 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
#11 1.418 npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
#11 1.418 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
#11 1.418 npm ERR!
#11 1.418 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
#11 1.418 npm ERR!
#11 1.419 npm ERR! Run "npm help ci" for more info
#11 1.420
#11 1.421 npm ERR! A complete log of this run can be found in:
#11 1.421 npm ERR! /root/.npm/_logs/2023-04-15T16_46_17_719Z-debug-0.log
-----
Dockerfile:21
-------------------
19 | RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
20 | COPY . /app/.
21 | >>> RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/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

> [stage-0 7/8] RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/root/npm,target=/root/.npm npm ci:
#11 1.418 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
#11 1.418 npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
#11 1.418 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
#11 1.418 npm ERR!
#11 1.418 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
#11 1.418 npm ERR!
#11 1.419 npm ERR! Run "npm help ci" for more info
#11 1.420
#11 1.421 npm ERR! A complete log of this run can be found in:
#11 1.421 npm ERR! /root/.npm/_logs/2023-04-15T16_46_17_719Z-debug-0.log
-----
Dockerfile:21
-------------------
19 | RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
20 | COPY . /app/.
21 | >>> RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/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

Thanks!
5 Replies
Percy
Percy2y ago
Project ID: afd49912-c36a-453d-bd65-f92c90d20a5e,afd49912-c36a-453d-bd65-f92c90d20a5e
Percy
Percy2y ago
You might find these helpful: - How to host my bot discord?
⚠️ experimental feature
Brody
Brody2y ago
please provide full build logs, those log lines dont actually contain the cause of the failed build
Charles_
Charles_2y ago
Thanks for prompt response, it was because package-lock.json hadn't been pushed.
Brody
Brody2y ago
that would have been my first guess, i just wanted to confirm glad you got it sorted!
Want results from more Discord servers?
Add your server