infrastructure-debugging
Installation
SKILL.md
Infrastructure Debugging
Dependency Resolution Strategy
When Facing Package Errors
- Read the full error: Scroll up to find the root cause, not just the final message
- Check version compatibility: Many issues stem from version mismatches
- Clear caches first:
npm cache clean --forceorpip cache purge - Try fresh install: Delete lock files and node_modules/venv, reinstall
- Check peer dependencies: Especially for React, TypeScript, and build tools
Common Package Manager Issues
npm/yarn/pnpm:
ERESOLVEerrors: Try--legacy-peer-depsor update conflicting packagesEACCESpermission errors: Don't use sudo, fix npm permissions instead- Phantom dependencies: Use
pnpmfor stricter resolution