1.第一步查看vue的版本,使用vue -V查看 2.升级vue到3.0:npm install @vue/cli -g 3.使用vue create 项目名称 //创建项目 4.运行项目:npm run serve