본문 바로가기

TIL/트러블슈팅

[Chocolatey] An existing Chocolatey installation was detected.

👉 에러

경고: An existing Chocolatey installation was detected. Installation will not continue. This script will not overwrite existing installations. If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation again.

 

👉 원인

관리자 권한으로 실행해서 설치했는데도 위와 같이 오류가 뜬다면 이미 설치된 적이 있어 폴더를 삭제 후에 재설치 해보라고는 것이다. 해당 폴더 주소를 검색해서 찾아보면 폴더만 생성되고 내부에 비어 있는 상태일 것이다

폴더 자체를 삭제하고 설치 명령어를 재시도 해야 한다.

 

👉 해결

'C:\ProgramData\chocolatey' 위치에 있는 폴더를 삭제