Skip to content

Pin the Node version for contributors #340

Closed

Description

@IanoNjuguna

Problem statement

Nothing pins the Node version for contributors. website/package.json says "node": ">=22.12.0" (raised in #336 because mermaid 12 requires it), the workflows pin Node 22, and there is no .nvmrc or .node-version in the repo.

The practical consequence showed up while debugging #336: node -v returned 24.18.1 in one shell and 22.23.1 in another on the same machine, and the two npm ci runs behave differently against the same lockfile.

Proposed solution

Add a .nvmrc (or .node-version) at the repository root with 22, matching the workflows and the engines floor, and mention it in CONTRIBUTING.md next to the prerequisites, which currently still say "Node.js (v16 or higher)".

Scope and impact

Two files, no build change. Contributors with nvm or fnm then get the right runtime without reading the workflows.

Acceptance criteria:

  • A Node version file exists at the root and matches the workflows
  • CONTRIBUTING.md prerequisites match engines

Activity

  1. added
    enhancement
    good first issue
    on Oct 18, 2026
  2. added a commit that references this issue on Oct 18, 2026
    e818a62
  3. added a commit that references this issue on Oct 18, 2026
    82fedb7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Low Priorityenhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions