简介

Clash Verge 是一个上网工具,详情可查看 github 地址。目前本人在用的 协议,可先试用。

npm 相关

1. 修改 npm 代理

使用 Clash Verge 时会自动开启系统代理服务器,此时使用 npm 会导致不能正常连接网络,需要为 npm 也配置此代理。
打开 cmdpowershell,通过命令行为 npm 设置代理

1
2
npm config set proxy http://127.0.0.1:7890
npm config set https-proxy http://127.0.0.1:7890

如果要取消代理
1
2
npm config delete proxy
npm config delete https-proxy

git 相关

1. 修改 git 代理

npm,使用 Clash Verge 后,git 连接 github 时,也出现了连接网络的问题,需要给 git 设置代理。

1
2
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890

只对 github.com 使用代理,其他仓库不走代理
1
2
git config --global http.https://github.com.proxy http://127.0.0.1:7890
git config --global https.https://github.com.proxy http://127.0.0.1:7890

取消代理,在 --global 后添加 --unset
1
2
git config --global --unset http.proxy
git config --global --unset https.proxy

常见问题

大多数可参考 Clash for Windows文档

1. 下载

建议到 github官方库 下载。
进入页面后,点击 tags,然后点击 Releases,下拉页面找到最新版本下的 Assets 标签,里面含有安装包和压缩包,找到对应自己系统的安装包下载即可。
image
点击 Show all 19 assets 展开后,可看到所有安装包
image
如果下载较慢,建议使用加速下载,右键链接选择复制,然后粘贴地址到 Github加速网站 进行下载
image

2. 停止使用 Clash Verge 后,Windows 不能上网

Clash Verge 1.2.0 现在在关闭后可以自动关闭代理服务器了,但是在代理使用期间微软商店还是不能联网的,需要退出 Clash Verge 后使用。如果你使用的是 Clash for Windows,则可以使用 UWP Loopback 解决此问题,详情查看

目前在本人的win11中有出现,包含微软商店秒退等现象,是由于 Clash Verge 自动启动了代理服务器,手动关闭即可。
image
点击 编辑 ,手动关闭后保存,如果微软商店还不能联网,重启电脑即可。
image