Electron安装遇到的问题
2024年1月6日大约 1 分钟约 200 字
可以参考的文档:
常用方法
更换npm源:
不要用cnpm,否则之后electron-forge会出问题
npm config set registry https://registry.npm.taobao.org清除缓存
npm cache clean --forceGit代理
设置Git代理
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080移除全局代理
git config --global --unset http.proxy
git config --global --unset https.proxy移除当前仓库的代理
git config --unset http.proxy
git config --unset https.proxy移除系统级代理
git config --system --unset http.proxy
git config --system --unset https.proxy查看Git全局配置
git config --global --list查看当前仓库的配置
git config --local --list查看系统配置
git config --system --list