Diagnose an npm installation or dependency error
Identify npm and Node.js failure modes such as ERESOLVE peer conflicts, ETARGET versions, engine mismatches, node-gyp builds, permission errors, missing files, lockfile drift, and registry/network failures, then return safe recovery commands.
$0.004 USDC POST /v1/npm-error
developer-tools · npm · dependencies · nodejs
Use it for
- fix npm install error
- diagnose ERESOLVE
- repair Node dependency conflict
Example input
{
"log": "FAILED tests/test_math.py::test_total - AssertionError: assert 1 == 2",
"step_name": "pytest"
}Example output
{
"success": true,
"issue_type": "peer_dependency_conflict",
"commands": [
"npm explain <package>",
"npm install"
]
}Call it
Use an x402 v2 payment-aware client from the quickstart. An unpaid request safely returns the exact payment challenge before any work runs.