Skip to content

[BUG] npm view ${tag} version got stuck when ran from workspace directory #3790

@Donorlin

Description

@Donorlin

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi, I have a simple monorepo project with workspaces. Root pkg.json contains

  "workspaces": [
    "packages/*",
  ],

Command npm view ${tag} version (tag is any package/* and is published and exists in the registry) ran in the command line from root returns version as expected.

But, running this command from the directory of any package gets stuck and returns nothing (the process is stuck).

Expected Behavior

npm view ${tag} version command should behave the same no matter where ran.

Steps To Reproduce

  1. Have monorepo with workspaces
  2. Have published monorepo packages (at least the one you will try to "view")
  3. Run npm view ${tag} version from the directory of one of the packages, where $tag is one of the published packages
  4. process will get stuck

Environment

  • OS: Win 10
  • Node: v14.17.3
  • npm: 7.23.0

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