기록/문제 해결

윈도우 git bash에서 choco가 안될때 - chocolatey 설치하기

복제고양이 2024. 2. 14. 10:04
300x250

 

bit bash 에서 choco 명령어가 없을때

 

 

 

How to install chocolatey/choco on Windows 10 - jcutrer.com

In this article, I will show you how to install Chocolatey on Windows 10. Chocolatey is an easy-to-use Software Package Manager for Windows similar to apt on ubuntu/debian or brew on OSX. Steps to Install chocolatey/choco on Windows 10 Click Start and type

jcutrer.com

 

 관리자 권한을 받은 powershell에 아래와 같이 입력하면 choco가 설치된다.

 

Set-ExecutionPolicy Bypass -Scope Process -Force; `
  iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

 

설치 후 git bash를 다시 열고 choco를 입력했을 때

 

 

===================

설치중 잘못해서 다시 설치할때 아래와 같은 에러가 뜬다면

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.

 

 

chocolatey 설치 중 메시지 - Stack Overflow

 

Message while installing chocolatey

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.

stackoverflow.com

 

 

C:\ProgramData\chocolatey 를 지우고 다시 시도하니 설치가 되었다.

반응형