Electron installation is too slow to solve

Officially provide commands:

# 克隆示例项目的仓库
$ git clone https://github.com/electron/electron-quick-start

# 进入这个仓库
$ cd electron-quick-start

# 安装依赖并运行
$ npm install && npm start

The last step of install will be slower. At this time, you need to set up a proxy:

npm config set registry=https://registry.npm.taobao.org/
npm config set ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/

Executed again npm install && npm startto quickly start the installation was successful.

Guess you like

Origin blog.csdn.net/cainiao1412/article/details/109992160