1.安装note.js
2.安装vue-cli: npm install --global vue-cli
第一步确保 npm 和vue-cli 已经安装执行命令:
执行项目
npm run dev
打开package.json,找到devDependencies并在最后加上"element-ui": “^2.2.1”
打开命令行停止服务,再通过npm install
进行安装,安装完成后npm run dev
启动
打开main.js 添加三行代码
import ElementUI from 'element-ui' //新添加 import 'element-ui/lib/theme-chalk/index.css' //新添加, Vue.use(ElementUI) //新添加
参考:https://blog.csdn.net/csdnear/article/details/79426915
https://www.cnblogs.com/zhoulifeng/p/9900564.html
https://blog.csdn.net/snowbeatrain/article/details/80776180
https://www.cnblogs.com/zhaoyongblog/p/10103237.html
https://www.cnblogs.com/zhaoyongblog/p/10103237.html
https://www.cnblogs.com/yeziTesting/p/7189779.html
https://github.com/WebCodeFarmer/houtai
https://github.com/loveRandy/vue-cli3.0-vueadmin