Skip to content

[BUG] Workspaces - bundledDependencies not installed #2207

@peterjuras

Description

@peterjuras

Current Behavior:

When running npm install to install dependencies in the root of a npm workspace dependencies that are specified in the bundledDependencies property of a child workspace are not installed on the disk.

Expected Behavior:

The dependency should be installed in a local node_modules folder (be it in the root or at the child package level). As far as I understand bundledDependencies should only affect npm when publishing modules so I'm not sure why this is changing npm's behavior when installing dependencies.

Steps To Reproduce:

  1. Clone this sample repository
  2. Ensure you are running npm >= 7
  3. Run npm install in the root of the repository
  4. Run ls node_modules

-> import-from is missing in the node_modules folder, although packages/a declares it as a dependency.

Environment:

OS: macOS 11.0.1
Node: 14.15.1
npm: 7.0.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions