Skip to content

Peer Dep Missing Error When use "npm list -g" #5940

@CNMathon

Description

@CNMathon

Version

4.5.7

Environment info

Environment Info:

  System:
    OS: Windows 10 10.0.20221
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  Binaries:
    Node: 12.18.1 - D:\Installation\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.14.8 - D:\Installation\nodejs\npm.CMD
  Browsers:
    Chrome: 86.0.4240.75
    Edge: Spartan (44.20221.1000.0), Chromium (85.0.564.70)
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

When I use "npm list -g --depth 0", @vue/cli throws a peer dep missing error just like this.

And I find that when I install @vue/cli, cli also returns a "@vue/compiler-sfc@3.0.0 requires a peer of vue@3.0.0 but none is installed" warning.

I don't think this is a coincidence, as I have found that quite a few members of our team have the phenomenon.

What is expected?

Run Successful

What is actually happening?

Throw Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions