1 安装node.js不作过多说明了,下载无脑安装即可。
2 安装完后配置node参数及cnpm
npm config set prefix "D:\nodejs\node_global"
npm config set cache"D:\nodejs\node_cache"
npm install -g cnpm --registry=https://registry.npm.taobao.org
3 安装vue-cli脚手架
cnpm install vue-cli -g
4 创建项目
vue init webpack '项目名称'
创建项目后具体说明,这里有一篇超详细文章
使用vue-cli创建vue项目及项目结构说明