premise
Install node.js and cnpm Taobao mirror
npm install -g cnpm --registry=https://registry.npm.taobao.org
Initialize scaffolding
cnpm i -g @vue/cli-init
Initialize the project
vue init webpack myapp
run
cd myapp
npm run dev
Browser access
localhost:8080
ctrl+c pause the project and introduce elementui
input the command
npm install --save element-ui
main.js introduction
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)