Skip to content

Cannot update vue-cli, not finding global cli-upgrade package. How do I update? #3562

@douglasg14b

Description

@douglasg14b

Version

3.2.2

Environment info

Environment Info:

  System:
    OS: Windows 10
    CPU: (8) x64 Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz
  Binaries:
    Node: 10.14.2 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Not Found
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

n/a

What is expected?

vue cli finds the package and updates

What is actually happening?

vue cli fails to find the package, and requests that it be globally installed.


I cannot update vue cli, when I try I just get the error:

Command vue upgrade requires a global addon to be installed.
Please run npm install -g @vue/cli-upgrade and try again.

I have globally installed @vue/cli-upgrade already, but the error persists.

How do I update vue cli in this case? Also, why does vue info show that the global @vue/cli is not found, when it is installed and I've been using vue-cli successfully?

If I run npm list -g --depth=0 it shows the appropriate packages :

C:\Users\Douglas>npm list -g --depth=0
C:\Users\Douglas\AppData\Roaming\npm
 -- @vue/cli@3.4.1
 -- @vue/cli-upgrade@3.4.1
`-- gulp@4.0.0

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