我正在使用powershell在我的计算机上安装Chocolatey,但是当我以管理员身份在powershell上键入以下命令时:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))我得到了这样的信息:
An existing Chocolatey installation was detected. Installation will not continue.
For security reasons, this script will not overwrite existing installations.
Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.我不明白为什么它说有一个现有的巧克力安装,我应该如何修复它,并继续在我的电脑上安装巧克力?
发布于 2021-02-14 04:04:04
我今天在一个系统上遇到了这个问题,这个系统显然安装了一个巧克力棒。这对我很有效;您的里程数可能会有所不同:
删除-项目C:\ProgramData\chocolatey -Recurse
然后再次运行Chocolatey安装命令。希望这对你有帮助!
发布于 2021-10-23 18:32:44
我手动删除了C:\ProgramData\chocolatey目录,然后再次启动命令
https://stackoverflow.com/questions/66167230
复制相似问题