i am installing Chocolatey on my computer by using powershell,but when i type this command on powershell as an admin:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
I get this message:
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.
I don't understand why it said there is an existing chocolatey installation,how should i fix it and keep installing chocolatey on my computer?
I ran into this today, on a system that apparently had a borked Chocolatey installation. This worked for me; your mileage may vary:
Remove-Item C:\ProgramData\chocolatey -Recurse
Then run the Chocolatey installation command again. Hope that's helpful!
I deleted manually C:\ProgramData\chocolatey directory then launched the command again
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With