Skip to content

Fix: remove incompatible nodejs/npm/cspell install from Dockerfile (cherry-pick #340) - #341

Merged
rquidute merged 1 commit into
v2.16-developfrom
fix/1044-remove-node-npm-cspell-from-dockerfile-v2.16
Jul 14, 2026
Merged

Fix: remove incompatible nodejs/npm/cspell install from Dockerfile (cherry-pick #340)#341
rquidute merged 1 commit into
v2.16-developfrom
fix/1044-remove-node-npm-cspell-from-dockerfile-v2.16

Conversation

@rquidute

Copy link
Copy Markdown
Contributor

Description

Cherry-picks the Dockerfile fix from #340 (v2.15.1-develop) onto v2.16-develop.

npm install -g npm@latest now resolves to an npm release requiring Node >=22.22.2, incompatible with the Node 20.x installed in the Dockerfile, breaking the backend image build with npm error EBADENGINE (#1044).

Spell checking already runs independently in CI via streetsidesoftware/cspell-action (.github/workflows/spell-check.yml), and scripts/lint.sh — the only in-repo consumer of the cspell CLI — is only ever invoked by developers locally, never at container build or runtime. So node/npm/cspell don't need to be baked into the runtime image at all.

Note: v2.16-develop already has the separate CommissionDeviceTest import fix (#335), so only the Dockerfile change from #340 is cherry-picked here — the rest of #340 (flake8 cleanup, import fix) is either already present or not applicable to this branch.

Type of change

  • Bug fix

Related issue

Fixes #1044

Testing

Cherry-picked cleanly, no conflicts. Docker not available in this dev environment — requesting a fresh install/build run to confirm.

npm@latest now requires node >=22, incompatible with the node 20.x installed
here, breaking the backend image build (npm error EBADENGINE). Spell
checking already runs independently in CI via streetsidesoftware/cspell-action
(.github/workflows/spell-check.yml) and scripts/lint.sh is only invoked by
developers locally — neither needs node/npm/cspell baked into the runtime
image.

Fixes #1044

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the installation of Node.js, npm, and the cspell spell checker from the Dockerfile. I have no feedback to provide as there are no review comments.

@mergify

mergify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@rquidute
rquidute requested a review from antonio-amjr July 14, 2026 18:55
@rquidute rquidute self-assigned this Jul 14, 2026
@rquidute
rquidute merged commit 70284e9 into v2.16-develop Jul 14, 2026
8 of 9 checks passed
@rquidute
rquidute deleted the fix/1044-remove-node-npm-cspell-from-dockerfile-v2.16 branch July 14, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants