Start a project

Tool 239 of 425 · Node.js

npm Overrides Explainer

Explains what every npm override does and where it applies, flags conflicts and converts the block for Yarn and pnpm.

npm Overrides Explainer

Your input

Result

OverrideVersionAppliesResult
Yarn resolutions
pnpm overrides

    01

    What it does

    Explains what every npm override does and where it applies, flags conflicts and converts the block for Yarn and pnpm.

    • Nested override paths
    • $dependency references
    • EOVERRIDE conflict check
    • Yarn resolutions and pnpm.overrides output

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    An explanation table and converted config, with a Copy and a Download button on every result.

    • npm overrides
    • package.json
    • Dependency pinning

    Why it matters

    Overrides are how you force a patched version of a vulnerable transitive dependency. The nesting rules and $ references are easy to misread.

    This explainer says in plain words what each entry changes, and gives the equivalent for Yarn and pnpm.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Explain overrides. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Do overrides work in a library?

    No. npm only reads overrides from the root project's package.json.

    What is EOVERRIDE?

    npm's error when an override for a direct dependency doesn't match its spec. Use "$name" to reference the direct spec instead.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk