在使用pnpm因为下载速度慢等原因导致无法安装依赖,解决办法
# 解决幽灵依赖
npm config set node-linker hoisted
# 设置国内镜像源(加速)
npm config set registry=https://registry.npmmirror.com
npm config set disturl=https://registry.npmmirror.com/-/binary/node
# 如果下载electron慢,配置如下
npm config set electron_mirror=https://registry.npmmirror.com/-/binary/electron/
pnpm install