My build is failing after only making minimal changes
benjamin1976
TRIALOP

2 years ago

Build failing with the following error:

  • UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
    LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)

Build Logs

10 11.41 owner, pack, ping, pkg, prefix, profile, prune, publish,

10 11.41 query, rebuild, repo, restart, root, run-script, sbom,

10 11.41 search, set, shrinkwrap, star, stars, start, stop, team,

10 11.41 test, token, uninstall, unpublish, unstar, update, version,

10 11.41 view, whoami

10 11.41

10 11.41 Specify configs in the ini-formatted file:

10 11.41 /root/.npmrc

10 11.41 or on the command line via: npm --key=value

10 11.41

10 11.41 More configuration info: npm help config

10 11.41 Configuration fields: npm help 7 config

10 11.41

10 11.41 npm@10.5.0 /nix/store/l6sykmmiavsfl44p16643x59282n78ll-nodejs-18.20.2/lib/node_modules/npm

10 11.42 npm ERR! code 1

10 11.42 npm ERR! path /app

10 11.42 npm ERR! command failed

10 11.42 npm ERR! command sh -c cd client&& npm --omit=dev&& npm install&& npm run build

10 11.42

10 11.42 npm ERR! A complete log of this run can be found in: /root/.npm/logs/2024-08-14T093621746Z-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/e4d83057-0079-40ca-aa13-f980fe30dcb6-/root/npm,target=/root/.npm npm ci:

11.41 More configuration info: npm help config

11.41 Configuration fields: npm help 7 config

11.41

11.41 npm@10.5.0 /nix/store/l6sykmmiavsfl44p16643x59282n78ll-nodejs-18.20.2/lib/node_modules/npm

11.42 npm ERR! code 1

11.42 npm ERR! path /app

11.42 npm ERR! command failed

11.42 npm ERR! command sh -c cd client&& npm --omit=dev&& npm install&& npm run build

11.42

11.42 npm ERR! A complete log of this run can be found in: /root/.npm/logs/2024-08-14T093621746Z-debug-0.log

2 warnings found (use --debug to expand):

  • UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)

Dockerfile:20

18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/e4d83057-0079-40ca-aa13-f980fe30dcb6-/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

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

2 years ago

From your build logs -

cd client&& npm --omit=dev&& npm install&& npm run build

Looks like you forgot a space.


Loading...