'powershell' is not recognized as an internal or external command, operable program or batch file
首先进入到对应目录径:
然后执行:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex
((new-object
net.webclient).DownloadString('http://bit.ly/psChocInstall'))"
&& SET PATH=%PATH%;%systemdrive%\chocolatey\bin
命令运行完成之后,输入choco命令,如果显示出了版本号,说明安装成功了。
PS C:\Windows\system32> chocoChocolatey v0.9.9.12