a year ago
I am not sure how to fix these errors. It only happened after I redeployed the current version. Before I redeploy, it was able to be deployed successfully without errors. Please advise.
0.363 ! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing pnpm@9.1.0+sha512.67f5879916a9293e5cf059c23853d571beaf4f753c707f40cb22bed5fb1578c6aad3b6c4107ccb3ba0b35be003eb621a16471ac836c87beb53f9d54bb4612724.
0.363 ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager
0.363
0.685 ERRPNPMUNKNOWN_SHELL Could not infer shell type.
0.685
0.685 Set the SHELL environment variable to your active shell.
0.685 Supported shell languages are bash, zsh, fish, ksh, dash, and sh.
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:27
25 | # build phase
26 | COPY . /app/.
27 | >>> RUN --mount=type=cache,id=s/6f2162a7-c339-46d7-88e7-7787ade9f5c4-next/cache,target=/app/.next/cache --mount=type=cache,id=s/6f2162a7-c339-46d7-88e7-7787ade9f5c4-nodemodules/cache,target=/app/nodemodules/.cache pnpm setup && pnpm run build
28 |
29 |
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm setup && pnpm run build" did not complete successfully: exit code: 1
Error: Docker build failed
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Please see this GH issue I found - https://github.com/pnpm/pnpm/issues/4495#issuecomment-1174023168