Skip to content

[DOCS] Document how to replace a dependency with a fork with overrides. #4909

@everett1992

Description

@everett1992

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Enhancement, not another kind of Docs Enhancement.

  • This is a CLI Docs Enhancement.

Description of Problem

If you need to make specific changes to dependencies of your dependencies, for example replacing the version of a dependency with a known security issue, replacing an existing dependency with a fork
https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides

This sounds like you can replace [email protected] with @private/[email protected] but the examples and documentation do not explain how to.

Potential Solution

If this is supported please document it, if it isn't please remove the references to replacing an existing dependency with a fork

Docs URL

https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issueNeeds Triageneeds review for next stepsconfig:overridesIssues dealing with the overrides feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions