下载带有git://的不成功,改为url.“https://“.insteadOf 下载(vue-element-admin为例子)
可以看出来,相比vue-admin-template来说,这个作为脚手架是略微复杂的。但是作为star最高的项目,还是要看一下。
·
step1: clone工程
https://github.com/PanJiaChen/vue-element-admin.git
step2: 如果直接npn install,则会报错
1.设置git环境,遇到git开头时转为https
git config --global url."https://".insteadOf git://
2.使用淘宝镜像执行
npm install --registry=https://registry.npm.taobao.org
step3: 运行起来
npm run dev
效果:
登录页面

进去后

总结:
可以看出来,相比vue-admin-template来说,这个作为脚手架是略微复杂的。
但是作为star最高的项目,还是要看一下。
同时,里面的元素自己有需要的也可以粘贴复制一波。
更多推荐
所有评论(0)