KJParker
KJParker

Reputation: 780

Updated Vue to 3.2.3. vue --version shows as 3.0.1 still... How to fix?

I am attempting to update my Vue version to the most recent, however after running "npm install -g @vue/cli" (as told to by the vue website), it said everything ran fine and shows 3.2.3 had installed, but when running vue --version to check, it shows as 3.0.1.

I then figured I would uninstall all vue instances but, regardless of global or local uninstalls, it would always still show vue --version as 3.0.1.

No matter what I tried, I can not seem to remove vue form my system for a fresh install, nor simply update from 3.0.1 to the latest version.

Not sure what sort of indo would be best to show here?

--

Bit more info here,

I ran "Which Vue" and the result was -

/usr/local/bin/vue

I also the ran npm list -g --depth=0

/usr/local/Cellar/node/11.6.0/lib
├── @vue/[email protected]
└── [email protected]

However, running - vue -V (or even vue --version) gives me just:

3.0.1

Upvotes: 1

Views: 5077

Answers (4)

e3d
e3d

Reputation: 1

3 steps to update from vue 3 lower version to the latest:

  • npm install -g @vue/cli
  • vue upgrade
  • npm i

Upvotes: 0

Tom Green
Tom Green

Reputation: 53

You need to uninstall vue-cli, and then install @vue/cli. Here is how:

npm uninstall -g vue-cli  
npm install -g @vue/cli

Upvotes: 1

alvaro.canepa
alvaro.canepa

Reputation: 592

Maybe you have npm and yarn installed.
Try npm update --global and yarn global upgrade.

Good luck!!!

Upvotes: -2

user5283119
user5283119

Reputation:

Try running npm install -g @vue/cli then reload your terminal.

Upvotes: 1

Related Questions