Build fail
hunghvu opened this issue · 0 comments
hunghvu commented
Related issue: yarnpkg/yarn#9015
> [linux/amd64 builder 5/6] RUN yarn global add turbo:
0.376 error This project's package.json defines "packageManager": "yarn@pnpm@9.12.0". However the current global version of Yarn is 1.22.22.
0.377
0.377 Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
0.377 Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
------
Dockerfile:10
--------------------
8 | WORKDIR /app
9 | COPY . .
10 | >>> RUN yarn global add turbo
11 | RUN turbo prune cms --docker
12 |
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn global add turbo" did not complete successfully: exit code: 1
Error: buildx failed with: ERROR: failed to solve: process "/bin/sh -c yarn global add turbo" did not complete successfully: exit code: 1