1.Vue CLI 3 安装启动
npm install -g @vue-cli
# OR
yarn global add @vue-cli

cd 你的项目名称

2.element-ui 安装
vue add element

会出现如下提示:

How do you want to import Element? (Use arrow keys)

为了方便,选择第一个全局引用:fully import

Do you wish to overwrite Element's SCSS variables? Yes
Choose the locale you want to load zh-CN

启动

npm run serve