前言
在使用 npm install electron
时,会出现以下报错
RequestError: connect ETIMEDOUT 185.199.109.133:443
ERR_SOCKET_TIMEOUT
Cannot read properties of null (reading 'pickAlgorithm')
大概问题就是会下载一些github上的包
解决
增加 electron的代理
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
问题解决!
评论区