'Set-ExecutionPolicy'不被识别为内部或外部命令,可操作的程序或批处理文件。尝试通过cmd安装chocolaty时收到此错误
Set-ExecutionPolicy是PowerShell Cmdlet。您应该在PowerShell(Admin-)会话中运行它,而不是在cmd中运行它。
Set-ExecutionPolicy
请查看Chocolatey.org的安装说明。我认为,官方的巧克力文档相当不错:
https://chocolatey.org/install#individual