choco报错

choco : 无法将“choco”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正 确,然后再试一次。

原因:没有安装chocolatey :chocolatey.org/install

复制到cmd 按enter进行安装:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

报错

对路径"C\program File(x86)'\web..."的访问被拒绝

1、右键Windows徽标 image.png

2、点击 image.png

3、、执行命令choco

image.png

 
posted @ 2022-10-29 17:01  VCCICCV  阅读(444)  评论(0编辑  收藏  举报