Vue init loading template 时间过长
问题
创建 electron-vue 项目时,vue init simulatedgreg/electron-vue my-project
卡在 loading template 。
原因
vue 从 github 仓库下载模板因为网络原因太慢。
解决
使用 vue init 离线安装。
- 手动从 GitHub下载 electron-vue
2. 解压放到 C:\Users\Star\.vue-templates
3. 执行 vue init --offline electron-vue my-project