先配置好node.js
按顺序执行以下命令
// 安装并配置淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm config set registry https://registry.npm.taobao.org/
npm config get registry https://registry.npm.taobao.org/
// 全局引入vue3.0框架 再创建项目
npm install @vue/cli -g
vue create 项目名称
// 如果create时出现
npm ERR! Unexpected end of JSON input while parsing near…
// 先执行
npm cache clean --force
// 再执行
vue create 项目名称