pnpm install --registry=http://registry.npm.taobao.org
安装依赖包的时候出现了postinstall$ node install.js
报错
找到install.js
找到downloadArtifact方法,添加如下代码
mirrorOptions:{mirror:"http://npmmirror.com/mirrors/electron/"}
http://npmmirror.com/mirrors/electron/
其实就是下面的链接
https://registry.npmmirror.com/binary.html?path=electron/
执行一下node install.js