R
Railway10mo ago
Mustafa

no such file or directory, open '/root/.cache/node/corepack/lastKnownG

I am getting this error "0.448 Internal Error: ENOENT: no such file or directory, open '/root/.cache/node/corepack/lastKnownGood.json'" in build logs.
Solution:
please try this nixpacks.toml file instead ```toml [phases.install] cmds = ["npm install -g [email protected] && corepack enable", "pnpm i --frozen-lockfile"] dependsOn = ["setup"]...
Jump to solution
13 Replies
Percy
Percy10mo ago
Project ID: f6d5a457-2bbc-4934-a848-07a4717c65d5
Mustafa
MustafaOP10mo ago
Project ID: f6d5a457-2bbc-4934-a848-07a4717c65d5
Mustafa
MustafaOP10mo ago
I've updated with nixpack.toml and getting this now ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm install -g [email protected] && corepack enable" did not complete successfully: exit code: 1 Nixpack file [phases.install] cmds = ["pnpm install -g [email protected] && corepack enable", "pnpm install --check-cache"] dependsOn = ["setup"]
Brody
Brody10mo ago
can you send me the latest build logs for the last build that worked without issue?
Solution
Brody
Brody10mo ago
please try this nixpacks.toml file instead
[phases.install]
cmds = ["npm install -g [email protected] && corepack enable", "pnpm i --frozen-lockfile"]
dependsOn = ["setup"]
[phases.install]
cmds = ["npm install -g [email protected] && corepack enable", "pnpm i --frozen-lockfile"]
dependsOn = ["setup"]
Brody
Brody10mo ago
Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with apps/uploader-app/package.json
Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with apps/uploader-app/package.json
please make sure your lock file is in sync
Mustafa
MustafaOP10mo ago
Solved now. thanks
Brody
Brody10mo ago
no problem!
Want results from more Discord servers?
Add your server