1、打开npm的配置文件
npm config edit
2、在打开的配置文件空白处将下面几个配置添加上去,注意如果有原有的这几项配置,就修改
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
electron_mirror=https://cdn.npmmirror.com/binaries/electron/
registry=https://registry.npmmirror.com