- 安裝的windows需求
- Windows 7+ / Windows Server 2003+
- PowerShell v2+
- .NET Framework 4+
注意:chocolatey的網站可能在國內訪問困難,致使上述安裝命令沒法正常完成,請使用穩定的
FQ工具。
cmd安裝
直接複製粘貼下面的text,而後按下enter鍵
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
powershell安裝
直接複製粘貼下面的text,而後按下enter鍵
iex ((
New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
關於powershell的詳細內容能夠訪問其官網 https://msdn.microsoft.com/en-us/library/dd835506(VS.85).aspx
安裝過程當中可能遇到的問題
好比cmd安裝(以下圖)
這時關掉cmd,以
管理員的身份從新運行,這樣問題就迎刃而解了。
--------------------- 做者:yin__ren 來源:CSDN 原文:https://blog.csdn.net/yin__ren/article/details/71171355?utm_source=copy 版權聲明:本文爲博主原創文章,轉載請附上博文連接!shell