Skip to content

Fix: remove incompatible nodejs/npm/cspell install from Dockerfile - #340

Merged
rquidute merged 3 commits into
v2.15.1-developfrom
fix/1044-remove-node-npm-cspell-from-dockerfile
Jul 14, 2026
Merged

Fix: remove incompatible nodejs/npm/cspell install from Dockerfile#340
rquidute merged 3 commits into
v2.15.1-developfrom
fix/1044-remove-node-npm-cspell-from-dockerfile

Conversation

@rquidute

@rquidute rquidute commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Description

Removes the nodejs/npm/cspell install step from the backend Dockerfile. npm install -g npm@latest now resolves to an npm release that requires Node >=22.22.2, incompatible with the Node 20.x installed a few lines above — this broke the backend image build with npm error EBADENGINE (see #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.

Type of change

  • Bug fix

Related issue

Fixes #1044

Testing

Removed the four RUN lines; no other script in the repo (build, prestart, CI) references nodejs/npm/cspell inside the container. Requesting a fresh image build/install run to confirm the fix (Docker not available in this dev environment).

@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 updates the version information, removes the installation of Node.js, npm, and the cspell spell checker from the Dockerfile, and updates the Matter SDK Docker tag and SHA in the configuration. There are no review comments, so we have no feedback to provide.

@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

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
@rquidute
rquidute force-pushed the fix/1044-remove-node-npm-cspell-from-dockerfile branch from 78511af to d6f7941 Compare July 14, 2026 13:15
rquidute added 2 commits July 14, 2026 14:16
At SDK_SHA df8bd0308caa0680e2a78cda724a959e5b385205 (v1.6.1-mve-branch),
CommissionDeviceTest lives in matter.testing.CommissioningPreTest again, not
matter.testing.commissioning (where it had been moved to prior to backend
#316, for an older SDK pin). The SDK has since moved it back, breaking
--get-test-info and all Python test commissioning with:

  ImportError: cannot import name 'CommissionDeviceTest' from
  'matter.testing.commissioning'
@rquidute
rquidute merged commit f49b828 into v2.15.1-develop Jul 14, 2026
7 of 8 checks passed
@rquidute
rquidute deleted the fix/1044-remove-node-npm-cspell-from-dockerfile branch July 14, 2026 14:55
@rquidute rquidute self-assigned this Jul 14, 2026
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