全局安装脚手架环境
npm install -g vue-cli
创建一个基于webpack模板项目my-project
vue init webpack my-项目名称
1.vue init webpack 项目名称 //创建项目
2.Project name(VueLession04) vuelession04
3.Project description(A. Vue.js project) vuelession04 //项目描述
4.Author(wkj <1547788799@qq.com>)//作者,直接回车
5. Runtime + Compiler: recommended for most users
6. Use ESlint to lint your code(Y/n) n//编码太严格不好开发,选n
7. Set up unit tests(Y/n) n
8. Setup e2e tests with Nightwatch? (Y/n) n
9. ? Should we run `npm install` for you after the project has been created? (recommended) (Use arrow keys)
> Yes, use NPM //(选这一项)
Yes, use Yarn
No, I will handle that myself
进入项目
cd my-项目名称
安装依赖
npm install
启动项目
npm run dev
官网地址:https://element.eleme.cn/#/zh-CN
引入Element-ui
npm install element-ui -S