Skip to content

Fix CI/CD Docker build failure caused by broken npm@11 global install - #14

Draft
mesayanroy with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-docker-image-build-error-again
Draft

Fix CI/CD Docker build failure caused by broken npm@11 global install#14
mesayanroy with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-docker-image-build-error-again

Conversation

Copilot AI commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

npm install -g npm@11 installs a version missing the promise-retry bundled dependency, causing every subsequent npm ci call to fail with MODULE_NOT_FOUND.

Changes

  • Dockerfile — removed npm install -g npm@11 && prefix from both deps and builder stage RUN commands
  • .github/workflows/ci.yml — removed the "Upgrade npm to v11" step from both lint-and-type-check and build jobs

Before:

RUN npm install -g npm@11 && npm ci

After:

RUN npm ci

Node 22 ships with npm 10.x which is fully compatible with npm ci and requires no upgrade.

@vercel

vercel Bot commented Mar 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
0x402-pubsub Ready Ready Preview, Comment Mar 31, 2026 10:44am

Copilot AI changed the title [WIP] Fix Docker image build failure in CI/CD process Fix CI/CD Docker build failure caused by broken npm@11 global install Mar 31, 2026
Copilot AI requested a review from mesayanroy March 31, 2026 10:45
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