Build failing (Nixpack?)
carletex
PROOP
2 years ago
A few days ago all our builds started to fail, even if I go back to the latest deployed (working) commit.
Dockerfile:20
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH 19 | COPY . /app/. 20 | >>> RUN --mount=type=cache,id=s/b569dfe3-71f4-49af-b273-837ad22eff7d-/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.
3 Replies
2 years ago
Full build logs please -
carletex
PROOP
2 years ago
Fixed it adding a restriction on the node version. It was using v22 when deploying (which works locally). But it works with node 20."engines": {
"node": ">=18 <22.0.0"
}
Status changed to Solved Railway • almost 2 years ago