inblog logo
|
oncehyun
    install

    1. 초코 설치하기

    Dec 11, 2023
    1. 초코 설치하기
    Contents
    1. 관리자 모드로 PowerShell 열기· 초코 홈페이지 문서 열기2. 초코 설치하기3. 초코 설치 확인

     

    1. 관리자 모드로 PowerShell 열기

    notion image
     

    · 초코 홈페이지 문서 열기

    https://chocolatey.org/
     
    https://chocolatey.org/install
     

    2. 초코 설치하기

     
    PowerShell에서 Get-ExecutionPolicy를 실행합니다.
    Get-ExecutionPolicy
     
    Restricted가 표시되는 것을 확인하였다면 아래의 명령어를 실행합니다.
    Set-ExecutionPolicy AllSigned
     
    윈도우의 현재 정책을 다시 확인합니다. (홈페이지)
    https://learn.microsoft.com/ko-kr/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4
     
    아래의 명령어를 실행하여 설치합니다.
    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'))
     
    💡
    동시에 여러 명이 요청할 시 ‘too many request’라는 오류가 발생할 수 있으므로 나중에 다시 시도합니다.
     
    오류가 발생하여 다시 시도할 때에는
    로컬 디스크 (c:) > ProgramData > chocolatey
     
    에서 chocolatey 파일을 삭제한 후 다시 시도합니다.
    notion image
     

    3. 초코 설치 확인

     
    choco --version
     
    Share article
    Contents
    1. 관리자 모드로 PowerShell 열기· 초코 홈페이지 문서 열기2. 초코 설치하기3. 초코 설치 확인

    oncehyun

    RSS·Powered by Inblog