1.下载项目
# 克隆示例项目的仓库
$ git clone https://github.com/electron/electron-quick-start
#git上下载可能会很慢,建议使用国内的gitee镜像,我使用的下面的镜像
$ git clonehttps://gitee.com/freakchicken/electron-quick-start.git
2.安装依赖
npm install
可能会报错,如下所示
PS C:\Users\EDY\Desktop\electron-quick-start> npm install
> core-js@3.14.0 postinstall C:\Users\EDY\Desktop\electron-quick-start\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
>

本文介绍了如何快速搭建 Electron 开发环境,包括下载项目、安装依赖(针对可能出现的报错提供了解决方案)以及如何运行项目。
最低0.47元/天 解锁文章
883

被折叠的 条评论
为什么被折叠?



