2 years ago
while building the project according to docs i am geting docker build failed error
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
Error: Docker build failed
ⓘ Deployment information is only viewable by Project members and Railway admins.
5 Replies
2 years ago
8 17.71 whose name attribute is located at /nix/store/hw0mp7awqma06m6s2h9yckyccxb63nqx-source/pkgs/stdenv/generic/make-derivation.nix:348:7
8 17.71
8 17.71 … while evaluating attribute 'passAsFile' of derivation 'bf744fe90419885eefced41b3e5ae442d732712d-env'
8 17.71 at /nix/store/hw0mp7awqma06m6s2h9yckyccxb63nqx-source/pkgs/build-support/trivial-builders/default.nix:88:7:
8 17.71 87| inherit buildCommand name;
8 17.71 88| passAsFile = [ "buildCommand" ]
8 17.71 | ^
8 17.71 89| ++ (derivationArgs.passAsFile or []);
8 17.71
8 17.71 error: undefined variable 'npm'
8 17.71 at /app/.nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix:20:26:
8 17.71 19| '')
8 17.71 20| nodejs nodejs18 npm npm-9x
8 17.71 | ^
8 17.71 21| ];
8 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
[stage-0 4/15] RUN nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d:
17.71 88| passAsFile = [ "buildCommand" ]
17.71 | ^
17.71 89| ++ (derivationArgs.passAsFile or []);
17.71
17.71 error: undefined variable 'npm'
17.71 at /app/.nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix:20:26:
17.71 19| '')
17.71 20| nodejs nodejs18 npm npm-9x
17.71 | ^
17.71 21| ];
Dockerfile:8
6 |
7 | COPY .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix
8 | >>> RUN nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d
9 |
10 |
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
Error: Docker build failed
2 years ago