Skip to content

skill: add sharp-node22-pnpm-override#3

Open
Grouzoul wants to merge 1 commit intomainfrom
skill/sharp-node22-pnpm-override
Open

skill: add sharp-node22-pnpm-override#3
Grouzoul wants to merge 1 commit intomainfrom
skill/sharp-node22-pnpm-override

Conversation

@Grouzoul
Copy link
Copy Markdown
Collaborator

Summary

  • New skill: fix pnpm install failure when sharp@0.32 is incompatible with Node 22
  • Solution: force sharp@0.33+ via pnpm.overrides in root package.json
  • Validation score: 20/20

Skill details

Field Value
Name sharp-node22-pnpm-override
Tags sharp, node22, pnpm, overrides, native-dependency
Reproducibility always
Time saved ~15min

🤖 Generated with Claude Code via SkillOps pipeline

Fix pnpm install failure when sharp@0.32 is incompatible with Node 22
by forcing a compatible version via pnpm.overrides.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Skill Review: sharp-node22-pnpm-override

Version: 1.0.0

Fix pnpm install failure when sharp@0.32 is incompatible with Node 22 by forcing a compatible version via pnpm.overrides.

Triggers

  - Running `pnpm install` on Node.js 22+ and getting an `ERESOLVE` error involving `sharp`.
  - A Docker build fails at the `pnpm install` step with sharp-related native module errors on a Node 22 base image.
  - Upgrading a project from Node 20 to Node 22 and encountering new dependency resolution failures.

Errors Prevented

  • ERESOLVE could not resolve — pnpm cannot find a version of sharp compatible with the current Node.js ABI.
  • Error: Cannot find module '../build/Release/sharp-...node' — sharp's prebuilt binary does not exist for the current Node.js version.
  • Silent build failures in CI/CD pipelines when the base image is upgraded to Node 22.

Generated by d9 SkillOps

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.

1 participant