第一步:环境准备
- Node.js(选择合适的版本) 我的Node版本是12.16.2 node下载
- Vue CLI?脚手架安装
npm install -g @vue/cli
第二部:vue项目创建
Project name 项目名称
Project description 项目简介
Author 作者
Vue build :两种
Install vue-router:是否安装vue路由器
Use ESLint to lint your code?:是否安装eslint代码格式检测(建议不要安装 安装后如果代码格式有无会报错,包括空格回车之类的)
Set up unit tests:是否安装测试单元
Setup e2e tests with Nightwatch?:是否安装e2e测试单元
Should we run npm install
for you after the project has been created? (recommended)