'powershell' is not recognized as an internal or external command, operable program or batch file
首先進(jìn)入到對應(yīng)目錄徑:
然后執(zhí)行:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex
((new-object
net.webclient).DownloadString('http://bit.ly/psChocInstall'))"
&& SET PATH=%PATH%;%systemdrive%\chocolatey\bin
命令運(yùn)行完成之后,輸入choco命令行贪,如果顯示出了版本號掐禁,說明安裝成功了立砸。
PS C:\Windows\system32> chocoChocolatey v0.9.9.12