其实官网就有介绍,贴上原址:
Chocolatey Software | Installing Chocolatey
安装步骤:
1、win+X选择Windows Powershell(管理员)
2、复制以下指令
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
3、粘贴进powershell后,回车执行
4、等待执行完毕
5、重新打开控制台,输入choco查看是否成功安装