Skip to content

Upgrade Node.js from v22 to v24 (Active LTS) #817

@Tim020

Description

@Tim020

Problem

Dependabot is failing to update npm dependencies with EBADENGINE errors because it uses Node v24.12.0 and npm 11.7.0, which conflicts with our strict engine requirements (Node <23, npm <11).

Example error:

npm error code EBADENGINE
npm error engine Unsupported engine
npm error notsup Required: {"npm":">=10.0.0 <11","node":">=22.0.0 <23"}
npm error notsup Actual:   {"node":"v24.12.0","npm":"11.7.0"}

Solution

Upgrade DigiScript to use Node v24.12.0 (Active LTS "Krypton") and npm 11.x across all environments:

  • Local development (.nvmrc, package.json)
  • Docker builds (Dockerfile)
  • CI/CD (GitHub Actions workflows)
  • Documentation

Implementation Plan

  • Update local configuration files
  • Test build, linting, and tests locally with Node 24
  • Update Dockerfile and CI/CD workflows
  • Update documentation
  • Create PR targeting dev branch
  • Verify Dependabot can update dependencies after merge

Follow-up Work

After Node 24 upgrade is complete, create separate issues for:

  • ESLint 9/10 upgrade (official Node 24 support + flat config)
  • Vite 7.x upgrade (Vite 4 is EOL)
  • Migrate node-sass to sass (Dart Sass)

Refs: https://github.com/dreamteamprod/DigiScript/actions/runs/20765825791/job/59631580051

Metadata

Metadata

Assignees

No one assigned

    Labels

    claudeIssues created by Claude

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions