Skip to content

[QUESTION] installing package dependencies when doing npm install <folder> #702

Closed
@gko

Description

@gko

What / Why

I know this question was asked a handful of times, and I probably have an idea on why that is.

But still, imagine you have a package «A» and it depends on a local package «B», that depends on a package «C».

When I do npm install ../B from package «A», I expect npm to add package «C» to node_modules of a package «A». It is not the case.

yarn add ../B however does add package «C» to node_modules of package «A».

I don't think it's relevant but:

  • npm version: 6.12.1
  • OS: macOS Catalina (10.15.2)

References

npm/npm#13734
npm/npm#20835

Thank you for your work ❤

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions