1嚼黔、打開(kāi)npm的配置文件
npm config edit
2熟史、在打開(kāi)的配置文件空白處將下面幾個(gè)配置添加上去,注意如果有原有的這幾項(xiàng)配置,就修改
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
electron_mirror=https://cdn.npmmirror.com/binaries/electron/
registry=https://registry.npmmirror.com