1、设置淘宝镜像地址
D:\dingding\electron-quick-start>npm config set registry https://registry.npm.ta
obao.org
2、编辑.npmrc文件
D:\dingding\electron-quick-start>npm config edit
3、加入
registry=https://registry.npm.taobao.org
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
phantomjs_cdnurl=http://npm.taobao.org/mirrors/phantomjs
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/