打开:
或者: C:\Users\用户名\.npmrc
添加:
electron_mirror=https://npmmirror.com/mirrors/electron/
到文件中,保存
方法二:
npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/
ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
出现问题原因:npm换地址了从npm.taobao.org换成了npmmirror.com