安装elementUI 的步骤

1、在项目下 输入;
cnpm install element-ui -S

2、查看配置文件package.json,是否有element-ui组件的版本号

3、 在main.js文件中 引入 element 组件 :

    import ElementUI from 'element-ui'
    import 'element-ui/lib/theme-chalk/index.css'

    Vue.use(ElementUI)
原文地址:https://www.cnblogs.com/panghu123/p/11728434.html