Skip to content

fix(images): Add npm into nodejs container as part of default install - #20651

Open
Eric Desrochers (eric-desrochers) wants to merge 1 commit into
4.0from
node-npm-container
Open

Eric Desrochers (eric-desrochers) wants to merge 1 commit into
4.0from
node-npm-container

Conversation

@eric-desrochers

@eric-desrochers Eric Desrochers (eric-desrochers) commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

npm is the standard package manager for Node.js.

In current latest NodeJS v24 container image, npm is not installed:

$ sudo docker run -it mcr.microsoft.com/azurelinux/catalog/nodejs:24-azl4 npm
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "npm": executable file not found in $PATH

Copilot AI balanced review requested due to automatic review settings December 2, 2026 19:54

Copilot AI 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.

🟢 Approval recommended

No active review issues are recorded for the change adding npm to the Node.js workload container.

No open issues 🎉

What changed in this PR

Includes npm by default in Azure Linux’s Node.js workload container.

Changes:

  • Adds nodejs-npm to the nodejs-workload image package list alongside nodejs.
File Description
base/​images/​teams/​containers-workloads.xml Explicitly includes npm in the Node.js container image.

Review effort: Balanced

@binujp binujp 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.

The change looks good.

suggestion(non-blocking): It would be nice to have a npm presence test since it is being added as a requirement. In the future we will have manifest driven verification. Until then explicit additions can do with a test.

This branch has not been deployed

No deployments
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.

3 participants