The vue installation has always been version 2.9.6, vue-cli download the latest version

Install the latest version of vue-cli:

Uninstall the 2.x version of vue-cli:

npm uninstall -g vue-cli 或 yarn global remove vue-cli

Install the 3.x version of @vue/cli:

npm install -g @vue/cli 或 yarn global add @vue/cli

Enter vue -V again to verify:Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_46182770/article/details/113096727