Skip to content

[BUG] Docker build fails due to Node version mismatch with engines requirement #1815

@Harsh16gupta

Description

@Harsh16gupta

Describe the bug.

The Docker build fails because the Node.js version used in the Dockerfile does not satisfy the engines requirement defined in package.json.

The project requires:
node >= 24.11
npm >= 11.5.1

However, the Dockerfile currently uses an older Node version, which causes npm ci to fail with an EBADENGINE error during the Docker build.

Expected behavior

The Docker build should use a Node.js version that satisfies the engines requirement so that npm ci completes successfully without errors.

Screenshots

Image

How to Reproduce

  1. Clone the asyncapi/generator repository.
  2. Build the Docker image using the existing Dockerfile.
  3. During the build process, npm ci fails with an EBADENGINE error due to an unsupported Node.js version.

🖥️ Device Information [optional]

  • Operating System (OS):Ubuntu 22.04
  • Browser:
  • Browser Version:

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions