choco官方安装地址:https://chocolatey.org/install
使用window打开powershell,在终端输入安装指令即可
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
效果如下:
choco --version 查看版本