claude-code-framework/essential/skills/emergency/dependency-resolver/SKILL.md
Resolves npm, yarn, or pnpm dependency conflicts including peer dependency warnings, version mismatches, and lock file corruption. Use when user sees "dependency conflict", "peer dependency", "ERESOLVE", "version mismatch", or package manager errors.
npx skillsauth add tokenized2027/claude-initilization-v7 dependency-resolverInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fixes package manager dependency conflicts.
Error:
npm WARN ERESOLVE overriding peer dependency
npm WARN [email protected] requires a peer of react-dom@^18.0.0
Fix:
# Install the required peer dependency
npm install react-dom@^18.0.0
# Or use --legacy-peer-deps flag
npm install --legacy-peer-deps
Error:
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from [email protected]
npm ERR! react@"18.2.0" from the root project
Fix Option 1 - Upgrade conflicting package:
npm install package-a@latest
Fix Option 2 - Use compatible React version:
npm install [email protected] [email protected]
Fix Option 3 - Override (package.json):
{
"overrides": {
"react": "18.2.0"
}
}
Error:
npm ERR! code EINTEGRITY
npm ERR! sha512-... integrity checksum failed
Fix:
# Delete lock file and node_modules
rm package-lock.json
rm -rf node_modules
# Clean npm cache
npm cache clean --force
# Reinstall
npm install
Error:
npm ERR! Cannot find module '@myorg/shared'
Fix:
# Rebuild workspace
npm install --workspaces
# Or specific workspace
npm install --workspace=packages/shared
# Clean slate
rm -rf node_modules package-lock.json
npm cache clean --force
npm install
# With legacy peer deps
npm install --legacy-peer-deps
# Force resolution
npm install --force
# Clean slate
rm -rf node_modules yarn.lock
yarn cache clean
yarn install
# Force resolution
yarn install --force
# Clean slate
rm -rf node_modules pnpm-lock.yaml
pnpm store prune
pnpm install
# Force resolution
pnpm install --force
✅ Use for: Dependency conflicts, peer dependency errors, lock file issues ❌ Don't use for: Choosing between packages, architectural decisions
development
Methodical debugging using reproducible steps, instrumentation, and root-cause analysis. Use when something is broken and you don't know why. Triggers on "bug", "broken", "not working", "error", "fails intermittently", "regression", "unexpected behavior".
development
Optimize prompts for Claude Code agents, API calls, and multi-agent orchestration. Use when writing system prompts, agent instructions, or refining LLM interactions. Triggers on "improve prompt", "write a prompt", "agent instructions", "system prompt", "prompt not working", "LLM output quality".
tools
Structured ideation and design review before any creative or constructive work. Use before building features, components, architecture, dashboards, or automation workflows. Triggers on "plan this", "design this", "brainstorm", "think through", "what should we build", "how should I approach".
testing
Generates test files for components and functions with setup, basic tests, and mocks. Use when user says "add tests", "create test", "test this component", or mentions testing.