项目git地址 git clone https://github.com/PanJiaChen/vue-element-admin.git
安装失败原因:
1.tui-editor里面引用了tui-chart tui-chart依赖Raphael是GitHub链接https://github.com/nhn/raphael.git#2.2.0-c,应该是这个链接超时
解决方法:
(如果不需要tui-editor)
1.先删除package-lock.json文件
2.将package.json里的tui-editor删掉
3.nmp I 安装node-modules
4.安装不成功,先安装淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org,再cnpm i
(如果需要tui-editor)
1.tui-editor(富文本编辑器插件)更名造成的,现在已经更名为toast-ui/editor
2.具体操作查看vue-element-admin的issue解决方案