Vue-cli: I can't update vue-cli

Created on 26 Jan 2017  路  3Comments  路  Source: vuejs/vue-cli

I recently installed vue-cli and when a new project started a message appeared that there is a new version of vue-cli, but when I want to update it is not updated.

The steps you take are as follows:

npm install -g vue-cli // ok installed
vue init webpack testproj
Message tells me that there is a newer version of vue-cli
Latest 2.8.0
Current 2.3.1
Stopped the creation of the project
Execute npm update -g vue-cli // but is not updated

How can I update with latest version?

Thanks

question

Most helpful comment

You can also do npm i -g vue-cli@latest to install the latest version

All 3 comments

I had similar issue and then ran npm install -g [email protected] to get the latest one.

You can also do npm i -g vue-cli@latest to install the latest version

To anyone who might still be stuck in a version 2.x after uninstalling and reinstalling version 3.x a few times, try closing your terminal and "vue --version" on a new terminal. That might do the trick.

Was this page helpful?
0 / 5 - 0 ratings