Skip to content

fix: use npm install --legacy-peer-deps to resolve undici conflict#38

Merged
rome2o merged 1 commit into
mainfrom
fix/npm-install-legacy-peers
May 15, 2026
Merged

fix: use npm install --legacy-peer-deps to resolve undici conflict#38
rome2o merged 1 commit into
mainfrom
fix/npm-install-legacy-peers

Conversation

@rome2o

@rome2o rome2o commented May 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Replaces npm ci with npm install --legacy-peer-deps to fix CI failures
  • Root cause: lock file generated locally with npm@11 resolves undici@6.25.0, but GitHub Actions Node 22 runners use npm@10 which resolves the same peer deps to undici@5.xnpm ci hard-fails on the mismatch
  • --legacy-peer-deps relaxes peer dep resolution so CI can install without lock file exactness conflict

Test plan

  • CI run completes npm install without lock file errors
  • Build succeeds
  • Tests pass
  • Semantic release publishes to npm via OIDC

🤖 Generated with Claude Code

…nflict

npm ci fails on Node 22 runners because the lock file (generated with
npm@11 locally) resolves undici@6.25.0 while npm@10 on CI expects @5.x
for certain transitive dependencies. --legacy-peer-deps relaxes peer dep
resolution instead of hard-failing on lock file mismatch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rome2o rome2o merged commit fcc4bb3 into main May 15, 2026
1 check passed
github-actions Bot pushed a commit that referenced this pull request May 15, 2026
# [1.1.0](v1.0.9...v1.1.0) (2026-05-15)

### Bug Fixes

* force @semantic-release/npm@13.1 via overrides to enable OIDC publish ([#41](#41)) ([ea7f82c](ea7f82c))
* update tool test mocks to capture 5-arg server.tool() signature ([#42](#42)) ([bf499dc](bf499dc))
* use npm install --legacy-peer-deps to resolve undici peer dep conflict ([#38](#38)) ([fcc4bb3](fcc4bb3))

### Features

* add MCP registry metadata for official registry submission ([#34](#34)) ([888dc80](888dc80))
* add tool annotations, MCPB bundle, and smithery config improvements ([#40](#40)) ([818af87](818af87))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant