docs: add winget command not fix tool and winget proxy guide

补充安装winget命令未找到提示工具的步骤,以及新增winget代理使用的配置教程
This commit is contained in:
2026-06-11 10:24:58 +08:00
parent 09da302a66
commit bf43d4ae2a
2 changed files with 33 additions and 0 deletions
+30
View File
@@ -104,3 +104,33 @@ winget --proxy <url>
winget --no-proxy
```
#### 使用代理
##### 命令行参数(单次使用)
1. 开启配置(需要管理员权限)
```powershell
winget settings --enable ProxyCommandLineOptions
```
2. 使用
```powershell
winget install Git.Git --proxy http://127.0.0.1:10809
```
##### 管理员配置(全局生效)
开启配置(需要管理员权限)
```powershell
winget settings set DefaultProxy http://127.0.0.1:10809
```
关闭配置(需要管理员权限)
```powershell
winget settings reset DefaultProxy
```