- 用你电脑上的编辑工具打开
~/.npmrc
我用的是vscode
code ~/.npmrc
- 添加配置
electron_mirror=https://npm.taobao.org/mirrors/electron/
electron-builder-binaries_mirror=https://npm.taobao.org/mirrors/electron-builder-binaries/
保存后再次执行打包即可
~/.npmrc
我用的是vscode
code ~/.npmrc
electron_mirror=https://npm.taobao.org/mirrors/electron/
electron-builder-binaries_mirror=https://npm.taobao.org/mirrors/electron-builder-binaries/
保存后再次执行打包即可