Electron-Vue起步

0、前提:node、npm、cnpm、yarn、vue

1、设置electron国内镜像

npm config set ELECTRON_MIRROR "https://npm.taobao.org/mirrors/electron/"
npm config set ELECTRON_CUSTOM_DIR "{{ version }}"

—— 提前配置国内镜像,保证了electron依赖不超时!

2、项目创建和普通的vue项目一样,使用vue-cli来安装electron-vue的模板

vue init simulatedgreg/electron-vue your-project

3、启动项目

yarn dev
posted @ 2021-08-12 15:12  资壁史卧边羌  阅读(71)  评论(0编辑  收藏  举报