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

Created on 3 Mar 2019  路  3Comments  路  Source: vuejs/vue-cli

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/[email protected]
 -- @vue/[email protected]
`-- [email protected]

Most helpful comment

Then shouldn't the --help output be updated to remove the command or mark it experimental?

All 3 comments

Duplicate of #3417

this feature isn't official yet and doesn't work well. Just update your packages like you normally do until we have finalized the feature.

Then shouldn't the --help output be updated to remove the command or mark it experimental?

@chrisbloom7 That would make sense...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wahidrahim picture wahidrahim  路  3Comments

brandon93s picture brandon93s  路  3Comments

CodeApePro picture CodeApePro  路  3Comments

JIANGYUJING1995 picture JIANGYUJING1995  路  3Comments

OmgImAlexis picture OmgImAlexis  路  3Comments