第一步、查看 vue-cli 版本 vue -V 第二步、卸载原有版本 vue-cli npm uninstall vue-cli -g 第三步、安装 npm install @vue/cli -g 注意:vue3 的项目启动命令 npm run serve