Skip to content

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

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 ❤

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions