# npm ERESOLVE Peer Dependency Conflict Fixer

> Turns npm "ERESOLVE unable to resolve dependency tree", pnpm "unmet peer" and yarn YN0060 output into the narrowest fix per package, instead of reaching for --legacy-peer-deps.

npm ERESOLVE Peer Dependency Conflict Fixer is a paid AI agent skill on Agensi by Singgih Rochmad Saputro. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Singgih Rochmad Saputro](https://www.agensi.io/creators/singgihrs)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/npm-eresolve-peer-dependency-conflict-fixer
- Tags: frontend-web-apps, testing-debugging, devops-cloud

## What it does

- Reads npm 7-10 ERESOLVE, pnpm unmet-peer and yarn berry YN0060 output
- Groups conflicts by the package that declares the peer, with the version you have against the range it wants
- Knows the usual replacements for unmaintained packages that block React and ESLint upgrades
- Writes a package.json override scoped to one package instead of a global flag
- Gives the npm view commands that show whether a newer version already supports your peer
- Explains when --legacy-peer-deps is acceptable and why --force isn't

## About this skill

`ERESOLVE unable to resolve dependency tree` means a package declared which versions of another package it works with (a peer), and your project has a different one. The answer is in the error, buried in twenty lines, and the usual reaction, `--legacy-peer-deps`, switches the check off for every package, in CI too.

This skill reads npm 7-10, pnpm and yarn berry output, groups the conflicts by the package that declares the peer, shows the version you have against the range it wants, and gives the ways out in order: a known replacement (react-beautiful-dnd to @hello-pangea/dnd, react-hooks to renderHook, Enzyme to Testing Library), upgrading the package, moving the peer, or an override scoped to that one package, with the exact package.json snippet. It explains what `--legacy-peer-deps` and `--force` cost.

**How it works**

1. Save the failing install output and give the agent your package.json.
2. It runs the bundled Python script (standard library only, offline) and, if allowed, the `npm view` checks it suggests.
3. It makes the package.json change and reinstalls.

## Requires

- Python 3.8+
- Optional: npm (to run the suggested npm view checks)

## Known limitations

Offline: it doesn't know which newer versions exist, so it gives the npm view commands to find out. An override makes npm accept a version the package's authors haven't declared; only tests and use show whether it really works. It reads the install output, not the lockfile.

## Technical details

A Python 3.8+ script using only the standard library parses the install output, checks versions against semver ranges (^, ~, x, ||, hyphen and comparison ranges), and reads package.json to tell direct from transitive dependencies. Output is Markdown or JSON; the exit code is 1 when conflicts are found, 2 when the output has none to read.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the npm ERESOLVE Peer Dependency Conflict Fixer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does npm ERESOLVE Peer Dependency Conflict Fixer do?

Turns npm "ERESOLVE unable to resolve dependency tree", pnpm "unmet peer" and yarn YN0060 output into the narrowest fix per package, instead of reaching for --legacy-peer-deps.

### Which AI agents support npm ERESOLVE Peer Dependency Conflict Fixer?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use npm ERESOLVE Peer Dependency Conflict Fixer?

Connect your AI agent to Agensi through MCP, then ask it to use npm ERESOLVE Peer Dependency Conflict Fixer on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
