Electron使用阿里镜像

linux && Mac

1
2
3
4
5
6
git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
// 设置electron镜像
export ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
npm install
npm start

windows

1
2
3
4
5
6
git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
// 设置electron镜像
set ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
npm install
npm start