创建vue2项目 创建vue2项目 安装nodejs npm切换阿里云镜像 npm config set registry https://registry.npm.taobao.org 安装@vue/cli npm install -g @vue/cli 检查是否安装成功 vue -V 创建项目