Skip to content

[Documentation] workspace dependencies #4742

Description

@xenoterracide

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

sorry if this is the wrong repo

Reading https://docs.npmjs.com/cli/v8/using-npm/workspaces#adding-dependencies-to-a-workspace

there's no real explanation of how to add a workspace as a dependency of another workspace

Expected Behavior

Documentation and examples of how to add regular and dev dependencies from one workspace to another, also a discussion of resolution order and wildcards.

Steps To Reproduce

Read https://docs.npmjs.com/cli/v8/using-npm/workspaces#adding-dependencies-to-a-workspace

Environment

❯ node --version && npm --version
v16.14.0
8.3.1

Activity

  1. transferred this issue fromnpm/configon Apr 13, 2022
  2. added
    Documentationdocumentation related issue
    Release 8.xwork is associated with a specific npm 8 release
    and removed
    Needs Triageneeds review for next steps
    on Apr 13, 2022
  3. pablopalacios commented on Mar 1, 2026

    @pablopalacios

    I would reopen this one since the current documentation is not correct. See #8845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issueRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions