如何在windows下安装Chocolatey


Chocolatey是一种包管理器,可以用cmd.exe和powershell安装


1、你要在管理员状态下的cmd命令行下输入:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

2、回车,看到
chocolatey is now ready时,表示安装完毕。



3、用powershell 安装,也是在管理员状态下输入:

Set-ExecutionPolicy Bypass; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

4、回车,看到 chocolatey is now ready时,表示安装完毕。


参考Chocolatey官网:https://chocolatey.org/install


发布了115 篇原创文章 · 获赞 38 · 访问量 43万+

猜你喜欢

转载自blog.csdn.net/wangweiscsdn/article/details/78318547