安装chocolatey

2024-10-17 16:08:01

1、打开cmd.exe命令行

2、输入如下命令:@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin后直接回车。

安装chocolatey

4、如果cmd无法安装,你可以试一试powershell 命令行的安装,打开powershell.exe

5、输入如下命令:iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

安装chocolatey

6、同样出现chocolatey is now ready,表示安装成功

猜你喜欢