electron 全局安装 更换国内源

npm config set registry=https://registry.npm.taobao.org
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
npm config set ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/

npm install -g electron

你可能感兴趣的:(electron,npm,node.js)