[GH-ISSUE #767] Vuejs app build fails with error #16836

Open
opened 2026-07-11 15:25:50 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Kulichanin on GitHub (Jun 18, 2026).
Original GitHub issue: https://github.com/docker/awesome-compose/issues/767

Building vuejs/vuejs/Dockerfile fails with the following error:

21.66 error @inquirer/external-editor@1.0.3: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.4.0"
21.67 info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
21.67 error Found incompatible module.
------
ERROR: failed to build: failed to solve: process "/bin/sh -c yarn global add @vue/cli" did not complete successfully: exit code: 1

When you fix the Dockerfile file, everything starts building:

# Update nodejs version
FROM --platform=$BUILDPLATFORM node:18.20-alpine AS development

RUN mkdir /project
WORKDIR /project

COPY . .

RUN yarn global add @vue/cli
COPY .npmrc .
COPY .yarnrc.yml .

# Update yarn version when building
RUN yarn upgrade && yarn install --immutable
ENV HOST=0.0.0.0
CMD ["yarn", "run", "serve"]

FROM development as dev-envs
RUN <<EOF
apk update
apk add git
EOF

RUN <<EOF
addgroup -S docker
adduser -S --shell /bin/bash --ingroup docker vscode
EOF
# install Docker tools (cli, buildx, compose)
COPY --from=gloursdocker/docker / /
CMD ["yarn", "run", "serve"]
Originally created by @Kulichanin on GitHub (Jun 18, 2026). Original GitHub issue: https://github.com/docker/awesome-compose/issues/767 Building vuejs/vuejs/Dockerfile fails with the following error: ```bash 21.66 error @inquirer/external-editor@1.0.3: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.4.0" 21.67 info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. 21.67 error Found incompatible module. ------ ERROR: failed to build: failed to solve: process "/bin/sh -c yarn global add @vue/cli" did not complete successfully: exit code: 1 ``` When you fix the Dockerfile file, everything starts building: ```Dockerfile # Update nodejs version FROM --platform=$BUILDPLATFORM node:18.20-alpine AS development RUN mkdir /project WORKDIR /project COPY . . RUN yarn global add @vue/cli COPY .npmrc . COPY .yarnrc.yml . # Update yarn version when building RUN yarn upgrade && yarn install --immutable ENV HOST=0.0.0.0 CMD ["yarn", "run", "serve"] FROM development as dev-envs RUN <<EOF apk update apk add git EOF RUN <<EOF addgroup -S docker adduser -S --shell /bin/bash --ingroup docker vscode EOF # install Docker tools (cli, buildx, compose) COPY --from=gloursdocker/docker / / CMD ["yarn", "run", "serve"] ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#16836